public static class Geo.Thrift extends Object implements Geo<GeoThrift>
Geo.Avro, Geo.AvroBuilder, Geo.Builder<T>, Geo.Comparator, Geo.NativeImpl, Geo.Protobuf, Geo.ProtobufBuilder, Geo.Thrift, Geo.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Thrift()
Create a new wrapper.
|
Thrift(GeoThrift wrapped)
Wraps an existing instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
GeoThrift |
get()
Returns underlying object.
|
String |
getCity()
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm).
|
String |
getCountry()
Country using ISO-3166-1 Alpha-3.
|
float |
getLat()
Latitude from -90 to 90.
|
float |
getLon()
Longitude from -180 to 180.
|
String |
getMetro()
Pass the metro code (seehttp://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
String |
getRegion()
Region using ISO 3166-2.
|
String |
getRegionfips104()
Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2).
|
int |
getType()
Indicate the source of the geo data (GPS, IP address, user provided).
|
String |
getZip()
Zip/postal code.
|
int |
hashCode() |
boolean |
isDefaultCity() |
boolean |
isDefaultCountry() |
boolean |
isDefaultLat() |
boolean |
isDefaultLon() |
boolean |
isDefaultMetro() |
boolean |
isDefaultRegion() |
boolean |
isDefaultRegionfips104() |
boolean |
isDefaultType() |
boolean |
isDefaultZip() |
Geo.Builder<GeoThrift> |
newBuilder()
Creates a new builder based on this object.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, nativeImpl, newAvroBuilder, newAvroBuilder, newAvroBuilder, newAvroBuilder, newNativeImplBuilder, newNativeImplBuilder, newProtobufBuilder, newProtobufBuilder, newProtobufBuilder, newThriftBuilder, newThriftBuilder, newThriftBuilder, protobuf, protobuf, thrift, thriftpublic static final long serialVersionUID
public Thrift(GeoThrift wrapped)
public Thrift()
public Geo.Builder<GeoThrift> newBuilder()
GeonewBuilder in interface Geo<GeoThrift>public float getLat()
Geopublic boolean isDefaultLat()
isDefaultLat in interface Geo<GeoThrift>public float getLon()
Geopublic boolean isDefaultLon()
isDefaultLon in interface Geo<GeoThrift>public String getCountry()
GeogetCountry in interface Geo<GeoThrift>public boolean isDefaultCountry()
isDefaultCountry in interface Geo<GeoThrift>public boolean isDefaultRegion()
isDefaultRegion in interface Geo<GeoThrift>public String getRegionfips104()
GeogetRegionfips104 in interface Geo<GeoThrift>public boolean isDefaultRegionfips104()
isDefaultRegionfips104 in interface Geo<GeoThrift>public String getMetro()
Geopublic boolean isDefaultMetro()
isDefaultMetro in interface Geo<GeoThrift>public String getCity()
Geopublic boolean isDefaultCity()
isDefaultCity in interface Geo<GeoThrift>public boolean isDefaultZip()
isDefaultZip in interface Geo<GeoThrift>public int getType()
Geopublic boolean isDefaultType()
isDefaultType in interface Geo<GeoThrift>Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.