public class Location
extends java.lang.Object
Place
.Constructor and Description |
---|
Location(GeoCoordinate coordinate)
Construct a
Location with a initial GeoCoordinate . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Address |
getAddress()
Gets the
Address for the Location . |
java.util.List<java.lang.String> |
getAlternativeReferenceIds(java.lang.String name)
Get a list of alternative identifiers of the same reference identifier for
a specific domain.
|
GeoBoundingBox |
getBoundingBox()
Gets the
GeoBoundingBox representing the map view bounding box for the
Location . |
GeoCoordinate |
getCoordinate()
Gets the
GeoCoordinate indicating where the map marker for the Location is
rendered. |
java.lang.String |
getId()
Gets the
String representation of the unique ID for the Location . |
java.lang.String |
getReference(java.lang.String name)
Get the reference identifier for a specific domain.
|
int |
hashCode() |
java.lang.String |
toString() |
public Location(GeoCoordinate coordinate)
Location
with a initial GeoCoordinate
.coordinate
- Initial location coordinate.public Address getAddress()
Address
for the Location
.Address
, or null
if unavailablepublic java.lang.String getId()
String
representation of the unique ID for the Location
.public GeoCoordinate getCoordinate()
GeoCoordinate
indicating where the map marker for the Location
is
rendered.GeoCoordinate
, or null
if unavailablepublic GeoBoundingBox getBoundingBox()
GeoBoundingBox
representing the map view bounding box for the
Location
.GeoBoundingBox
, or null
if unavailablepublic java.lang.String getReference(java.lang.String name)
BUILDING_ID_REFERENCE_NAME
.
NOTE: A reference will not be returned if it has not been added to the request using
Request<T>#addReference
.name
- The reference name.public final java.util.List<java.lang.String> getAlternativeReferenceIds(java.lang.String name)
PlacesBaseRequest#setReferences
function.name
- The reference name.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object