public class PlacesService extends MapObject
Modifier and Type | Method and Description |
---|---|
void |
getDetails(PlaceDetailsRequest request,
PlaceDetailsCallback callback)
Retrieves details about the Place identified by the given placeId.
|
void |
nearbySearch(PlaceSearchRequest request,
PlaceNearbySearchCallback callback)
Retrieves a list of Places in a given area.
|
void |
radarSearch(RadarSearchRequest request,
PlaceRadarSearchCallback callback)
Similar to the nearbySearch function, with the following differences: the search response will include
up to 200 Places, identified only by their geographic coordinates and place_id
Method run asynchronously.
|
void |
textSearch(TextSearchRequest request,
PlaceTextSearchCallback callback)
Similar to the nearbySearch function, with the following differences: it retrieves a list of Places based on the
query attribute in the given request object; bounds or location + radius parameters are optional; and the
region, when provided, will not restrict the results to places inside the area, only bias the response towards
results near it.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public void getDetails(PlaceDetailsRequest request, PlaceDetailsCallback callback)
request
- request objectcallback
- instance of PlaceDetailsCallbackpublic void nearbySearch(PlaceSearchRequest request, PlaceNearbySearchCallback callback)
request
- request objectcallback
- instance of PlaceNearbySearchCallbackpublic void radarSearch(RadarSearchRequest request, PlaceRadarSearchCallback callback)
request
- request objectcallback
- instance of PlaceRadarSearchCallbackpublic void textSearch(TextSearchRequest request, PlaceTextSearchCallback callback)
request
- request objectcallback
- instance of PlaceTextSearchCallback