public class PlacesService extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
PlacesService()
Use newInstance();
|
Modifier and Type | Method and Description |
---|---|
void |
getDetails(PlaceDetailsRequest request,
PlaceDetailsHandler handler)
Retrieves details about the Place identified by the given reference.
|
void |
nearbySearch(PlaceSearchRequest request,
PlaceSearchHandler handler)
Retrieves a list of Places in a given area.
|
static PlacesService |
newInstance(Element htmlDivElement)
Creates a new instance of the PlacesService that renders attributions in the specified container.
|
static PlacesService |
newInstance(MapWidget mapWidget)
Creates a new instance of the PlacesService that renders attributions in the specified container.
|
void |
textSearch(TextSearchRequest request,
PlaceTextSearchHandler handler)
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.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final PlacesService newInstance(MapWidget mapWidget)
mapWidget
- public static final PlacesService newInstance(Element htmlDivElement)
htmlDivElement
- public final void getDetails(PlaceDetailsRequest request, PlaceDetailsHandler handler)
request
- handler
- public final void nearbySearch(PlaceSearchRequest request, PlaceSearchHandler handler)
request
- handler
- public final void textSearch(TextSearchRequest request, PlaceTextSearchHandler handler)
Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.