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

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

public class PlaceSearchRequest
extends JavaScriptObject

A Place search query to be sent to the PlacesService.

See PlaceSearchRequest API Doc


Constructor Summary
protected PlaceSearchRequest()
          use newInstance();
 
Method Summary
 LatLngBounds getBounds()
          The bounds within which to search for Places.
 String getKeyword()
          A term to be matched against all available fields, including but not limited to name, type, and address, as well as customer reviews and other third-party content.
 LatLng getLocation()
          The location around which to search for Places.
 String getName()
          Restricts the Place search results to Places that include this text in the name.
 double getRadius()
          The distance from the given location within which to search for Places, in meters.
 AutocompleteType[] getTypes()
          Restricts the Place search results to Places with a type matching at least one of the specified types in this array.
static PlaceSearchRequest newInstance()
          A Place search query to be sent to the PlacesService.
 void setBounds(LatLngBounds bounds)
          The bounds within which to search for Places.
 void setKeyword(String keyword)
          A term to be matched against all available fields, including but not limited to name, type, and address, as well as customer reviews and other third-party content.
 void setLocation(LatLng location)
          The location around which to search for Places.
 void setName(String name)
          Restricts the Place search results to Places that include this text in the name.
 void setRadius(double radius)
          The distance from the given location within which to search for Places, in meters.
 void setTypes(AutocompleteType... types)
          Restricts the Place search results to Places with a type matching at least one of the specified types in this array.
 void setTypes(JsArrayString types)
           
 void setTypes(List<String> types)
           
 void setTypes(String... types)
           
 
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

PlaceSearchRequest

protected PlaceSearchRequest()
use newInstance();

Method Detail

newInstance

public static final PlaceSearchRequest newInstance()
A Place search query to be sent to the PlacesService.


setBounds

public final void setBounds(LatLngBounds bounds)
The bounds within which to search for Places. Both location and radius will be ignored if bounds is set.

Parameters:
bounds -

getBounds

public final LatLngBounds getBounds()
The bounds within which to search for Places. Both location and radius will be ignored if bounds is set.


setKeyword

public final void setKeyword(String keyword)
A term to be matched against all available fields, including but not limited to name, type, and address, as well as customer reviews and other third-party content.

Parameters:
keyword -

getKeyword

public final String getKeyword()
A term to be matched against all available fields, including but not limited to name, type, and address, as well as customer reviews and other third-party content.


setLocation

public final void setLocation(LatLng location)
The location around which to search for Places.

Parameters:
location -

getLocation

public final LatLng getLocation()
The location around which to search for Places.


setName

public final void setName(String name)
Restricts the Place search results to Places that include this text in the name.

Parameters:
name -

getName

public final String getName()
Restricts the Place search results to Places that include this text in the name.


setRadius

public final void setRadius(double radius)
The distance from the given location within which to search for Places, in meters. The maximum allowed value is 50000

Parameters:
radius -

getRadius

public final double getRadius()
The distance from the given location within which to search for Places, in meters. The maximum allowed value is 50000


setTypes

public final void setTypes(AutocompleteType... types)
Restricts the Place search results to Places with a type matching at least one of the specified types in this array. Valid types are given here. TODO add more AutocompleteType enums down the road. Otherwise use the setTypes(JsArrayString)

Parameters:
types -

setTypes

public final void setTypes(List<String> types)

setTypes

public final void setTypes(String... types)

setTypes

public final void setTypes(JsArrayString types)

getTypes

public final AutocompleteType[] getTypes()
Restricts the Place search results to Places with a type matching at least one of the specified types in this array. Valid types are given here.



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