public final class Location extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Location() |
| Modifier and Type | Method and Description |
|---|---|
Location |
clone() |
Double |
getAccuracy()
The accuracy of the location fix in meters.
|
String |
getAddress()
The full address of the location.
|
String |
getDisplayName()
The name to be displayed.
|
String |
getId()
The ID of the location.
|
String |
getKind()
The type of resource.
|
Double |
getLatitude()
The latitude, in degrees.
|
Double |
getLongitude()
The longitude, in degrees.
|
DateTime |
getTimestamp()
The time at which this location was captured, formatted according to RFC 3339.
|
Location |
set(String fieldName,
Object value) |
Location |
setAccuracy(Double accuracy)
The accuracy of the location fix in meters.
|
Location |
setAddress(String address)
The full address of the location.
|
Location |
setDisplayName(String displayName)
The name to be displayed.
|
Location |
setId(String id)
The ID of the location.
|
Location |
setKind(String kind)
The type of resource.
|
Location |
setLatitude(Double latitude)
The latitude, in degrees.
|
Location |
setLongitude(Double longitude)
The longitude, in degrees.
|
Location |
setTimestamp(DateTime timestamp)
The time at which this location was captured, formatted according to RFC 3339.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic Double getAccuracy()
null for nonepublic Location setAccuracy(Double accuracy)
accuracy - accuracy or null for nonepublic String getAddress()
null for nonepublic Location setAddress(String address)
address - address or null for nonepublic String getDisplayName()
null for nonepublic Location setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getId()
null for nonepublic String getKind()
null for nonepublic Location setKind(String kind)
kind - kind or null for nonepublic Double getLatitude()
null for nonepublic Location setLatitude(Double latitude)
latitude - latitude or null for nonepublic Double getLongitude()
null for nonepublic Location setLongitude(Double longitude)
longitude - longitude or null for nonepublic DateTime getTimestamp()
null for nonepublic Location setTimestamp(DateTime timestamp)
timestamp - timestamp or null for nonepublic Location set(String fieldName, Object value)
set in class GenericJsonpublic Location clone()
clone in class GenericJson