com.google.gwt.maps.client.placeslib
Class PlacesService

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.placeslib.PlacesService

public class PlacesService
extends JavaScriptObject

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

PlacesService

protected PlacesService()
Use newInstance();

Method Detail

newInstance

public static final PlacesService newInstance(MapWidget mapWidget)
Creates a new instance of the PlacesService that renders attributions in the specified container.

Parameters:
mapWidget -

newInstance

public static final PlacesService newInstance(Element htmlDivElement)
Creates a new instance of the PlacesService that renders attributions in the specified container.

Parameters:
htmlDivElement -

getDetails

public final void getDetails(PlaceDetailsRequest request,
                             PlaceDetailsHandler handler)
Retrieves details about the Place identified by the given reference.

Parameters:
request -
handler -

nearbySearch

public final void nearbySearch(PlaceSearchRequest request,
                               PlaceSearchHandler handler)
Retrieves a list of Places in a given area. The PlaceResultss passed to the callback are stripped-down versions of a full PlaceResult. A more detailed PlaceResult for each Place can be obtained by sending a Place Details request with the desired Place's reference value. required parameters: location, radius

Parameters:
request -
handler -

textSearch

public final 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.



Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.