public class PlaceSearchRequest extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
PlaceSearchRequest()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
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.
|
double |
getRaidus()
Deprecated.
|
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 |
setRaidus(double radius)
Deprecated.
|
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) |
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final PlaceSearchRequest newInstance()
public final void setBounds(LatLngBounds bounds)
bounds
- public final LatLngBounds getBounds()
public final void setKeyword(String keyword)
keyword
- public final String getKeyword()
public final void setLocation(LatLng location)
location
- public final LatLng getLocation()
public final void setName(String name)
name
- public final String getName()
@Deprecated public final void setRaidus(double radius)
radius
- setRadius(double)
public final void setRadius(double radius)
radius
- @Deprecated public final double getRaidus()
getRadius()
public final double getRadius()
public final void setTypes(AutocompleteType... types)
types
- public final void setTypes(String... types)
public final void setTypes(JsArrayString types)
public final AutocompleteType[] getTypes()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.