public final class GoogleMapsPlacesV1AddressDescriptorLandmark
extends com.google.api.client.json.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 Places API (New). For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleMapsPlacesV1AddressDescriptorLandmark() |
| Modifier and Type | Method and Description |
|---|---|
GoogleMapsPlacesV1AddressDescriptorLandmark |
clone() |
GoogleTypeLocalizedText |
getDisplayName()
The landmark's display name.
|
String |
getName()
The landmark's resource name.
|
String |
getPlaceId()
The landmark's place id.
|
String |
getSpatialRelationship()
Defines the spatial relationship between the target location and the landmark.
|
Float |
getStraightLineDistanceMeters()
The straight line distance, in meters, between the center point of the target and the center
point of the landmark.
|
Float |
getTravelDistanceMeters()
The travel distance, in meters, along the road network from the target to the landmark, if
known.
|
List<String> |
getTypes()
A set of type tags for this landmark.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
set(String fieldName,
Object value) |
GoogleMapsPlacesV1AddressDescriptorLandmark |
setDisplayName(GoogleTypeLocalizedText displayName)
The landmark's display name.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
setName(String name)
The landmark's resource name.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
setPlaceId(String placeId)
The landmark's place id.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
setSpatialRelationship(String spatialRelationship)
Defines the spatial relationship between the target location and the landmark.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
setStraightLineDistanceMeters(Float straightLineDistanceMeters)
The straight line distance, in meters, between the center point of the target and the center
point of the landmark.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
setTravelDistanceMeters(Float travelDistanceMeters)
The travel distance, in meters, along the road network from the target to the landmark, if
known.
|
GoogleMapsPlacesV1AddressDescriptorLandmark |
setTypes(List<String> types)
A set of type tags for this landmark.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic GoogleMapsPlacesV1AddressDescriptorLandmark()
public GoogleTypeLocalizedText getDisplayName()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setDisplayName(GoogleTypeLocalizedText displayName)
displayName - displayName or null for nonepublic String getName()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setName(String name)
name - name or null for nonepublic String getPlaceId()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setPlaceId(String placeId)
placeId - placeId or null for nonepublic String getSpatialRelationship()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setSpatialRelationship(String spatialRelationship)
spatialRelationship - spatialRelationship or null for nonepublic Float getStraightLineDistanceMeters()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setStraightLineDistanceMeters(Float straightLineDistanceMeters)
straightLineDistanceMeters - straightLineDistanceMeters or null for nonepublic Float getTravelDistanceMeters()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setTravelDistanceMeters(Float travelDistanceMeters)
travelDistanceMeters - travelDistanceMeters or null for nonepublic List<String> getTypes()
null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark setTypes(List<String> types)
types - types or null for nonepublic GoogleMapsPlacesV1AddressDescriptorLandmark set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleMapsPlacesV1AddressDescriptorLandmark clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.