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

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

public class PlacesService
extends JavaScriptObject

Contains methods related to searching for Places and retrieving details about a Place. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Nested Class Summary
static interface PlacesService.Callback
          Callback type for handling asynchronous responses from search.
static interface PlacesService.GetDetailsCallback
          Callback type for handling asynchronous responses from getDetails.
 
Constructor Summary
protected PlacesService()
          Protected constructor avoids default public constructor.
 
Method Summary
static PlacesService create(DivElement attrContainer)
          Creates a new instance of the PlacesService that renders attributions in the specified container.
 void getDetails(PlaceDetailsRequest request, PlacesService.GetDetailsCallback callback)
          Retrieves details about the Place identified by the given reference.
 void search(PlaceSearchRequest request, PlacesService.Callback callback)
          Retrieves a list of Places in a given area.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacesService

protected PlacesService()
Protected constructor avoids default public constructor.

Method Detail

create

public static PlacesService create(DivElement attrContainer)
Creates a new instance of the PlacesService that renders attributions in the specified container.


getDetails

public final void getDetails(PlaceDetailsRequest request,
                             PlacesService.GetDetailsCallback callback)
Retrieves details about the Place identified by the given reference.


search

public final void search(PlaceSearchRequest request,
                         PlacesService.Callback callback)
Retrieves a list of Places in a given area. The PlaceResult s 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.