Follow us on GitHub

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 getRaidus()
          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 setRaidus(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.
 
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.


setRaidus

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

Parameters:
radius -

getRaidus

public final double getRaidus()
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.

Parameters:
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.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.