Class Info |
|---|
public class Site Represents a place object. |
Qualifier and Type |
Method Name and Description |
|---|---|
| Obtains place details. |
|
Double |
Obtains the linear distance between the predicted place and the place specified in the input parameter location. |
String |
Obtains the formatted detailed address of a place. |
| Obtains the longitude and latitude of a place. |
|
String |
getName() Obtains the name of a place. |
getPoi() Obtains the POI of a place. |
|
| Obtains description of the autocomplete place. |
|
String |
Obtains the unique ID of a place. |
Integer |
Obtains the difference between the time zone of a place and the UTC time zone. |
| Obtains the viewport of a place. |
|
void |
setAddress(AddressDetail address) Sets place details. |
void |
setDistance(Double distance) Sets the linear distance between a predicted place and the location specified by the input parameter location. |
void |
setFormatAddress(String formatAddress) Sets the formatted detailed address of a place. |
void |
setLocation(Coordinate location) Sets the longitude and latitude of a place. |
void |
setName(String name) Sets the name of a place. |
void |
Sets the POI of a place. |
void |
setPrediction(AutoCompletePrediction prediction) Sets the autocomplete place description. |
void |
setSiteId(String siteId) Sets the unique ID of a place. |
void |
setUtcOffset(Integer utcOffset) Sets the difference between the time zone of a place and the UTC time zone. |
void |
setViewport(CoordinateBounds viewport) Sets the viewport of a place. |
Method |
|---|
public AddressDetail getAddress() Obtains place details. |
Returns
Type |
Description |
|---|---|
Place details. |
Method |
|---|
public Double getDistance() Obtains the linear distance between a predicted place and the location specified by the input parameter location. |
Returns
Type |
Description |
|---|---|
Double |
Linear distance between a predicted place and the location specified by the input parameter location, in meters. |
Method |
|---|
public String getFormatAddress() Obtains the formatted detailed address of a place. |
Returns
Type |
Description |
|---|---|
String |
Formatted detailed address of a place. |
Method |
|---|
public Coordinate getLocation() Obtains the longitude and latitude of a place. |
Returns
Type |
Description |
|---|---|
Longitude and latitude of a place. |
Method |
|---|
public String getName() Obtains the name of a place. |
Returns
Type |
Description |
|---|---|
String |
Name of a place. |
Method |
|---|
public Poi getPoi() Obtains the POI of a place. |
Returns
Type |
Description |
|---|---|
POI of a place. |
Method |
|---|
public AutoCompletePrediction getPrediction() Obtains the autocomplete place description. |
Returns
Type |
Description |
|---|---|
Autocomplete place description. NOTE:
This parameter is returned only by the search suggestion and autocomplete APIs. |
Method |
|---|
public String getSiteId() Obtains the unique ID of a place. |
Returns
Type |
Description |
|---|---|
String |
Unique ID of a place. |
Method |
|---|
public Integer getUtcOffset() Obtains the difference between the time zone of a place and the UTC time zone. |
Returns
Type |
Description |
|---|---|
Integer |
Difference between the time zone of a place and the UTC time zone, in minutes. NOTE:
This parameter is returned only by the place detail search API. |
Method |
|---|
public CoordinateBounds getViewport() Obtains the viewport of a place. |
Returns
Type |
Description |
|---|---|
Viewport of a place. |
Method |
|---|
public void setAddress(AddressDetail address) Sets place details. |
Parameters
Name |
Description |
|---|---|
address |
Place details. |
Method |
|---|
public void setDistance(Double distance) Sets the linear distance between a predicted place and the location specified by the input parameter location. |
Parameters
Name |
Description |
|---|---|
distance |
Linear distance between a predicted place and the location specified by the input parameter location, in meters. |
Method |
|---|
public void setFormatAddress(String formatAddress) Sets the formatted detailed address of a place. |
Parameters
Name |
Description |
|---|---|
formatAddress |
Formatted detailed address of a place. |
Method |
|---|
public void setLocation(Coordinate location) Sets the longitude and latitude of a place. |
Parameters
Name |
Description |
|---|---|
location |
Longitude and latitude of a place. |
Method |
|---|
public void setName(String name) Sets the name of a place. |
Parameters
Name |
Description |
|---|---|
name |
Name of a place. |
Method |
|---|
public void setPoi(Poi poi) Sets the POI of a place. |
Parameters
Name |
Description |
|---|---|
poi |
POI of a place. |
Method |
|---|
public void setPrediction(AutoCompletePrediction prediction) Sets the autocomplete place description. |
Parameters
Name |
Description |
|---|---|
prediction |
Autocomplete place description. |
Method |
|---|
public void setSiteId(String siteId) Sets the unique ID of a place. |
Parameters
Name |
Description |
|---|---|
siteId |
Unique ID of a place. |
Method |
|---|
public void setUtcOffset(Integer utcOffset) Sets the difference between the time zone of a place and the UTC time zone. |
Parameters
Name |
Description |
|---|---|
utcOffset |
Difference between the time zone of a place and the UTC time zone, in minutes. |
Method |
|---|
public void setViewport(CoordinateBounds viewport) Sets the viewport of a place. |
Parameters
Name |
Description |
|---|---|
viewport |
Viewport of a place. |