|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.placeslib.PlacesService
public class PlacesService
Contains methods related to searching for Places and retrieving details about a Place.
See PlaceSearchRequest
API Doc
| Constructor Summary | |
|---|---|
protected |
PlacesService()
Use newInstance(); |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected PlacesService()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||