public class TextSearchRequest extends MapObject
Constructor and Description |
---|
TextSearchRequest()
Creates new TextSearchRequest object.
|
TextSearchRequest(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
getBounds()
Returns value of bounds property.
|
LatLng |
getLocation()
Returns value of location property.
|
java.lang.String |
getQuery()
Returns value of query property.
|
double |
getRadius()
Returns value of radius property.
|
java.lang.String |
getType()
Returns value of type property.
|
java.lang.String[] |
getTypes()
Deprecated.
|
void |
setBounds(LatLngBounds value)
Sets new value for bounds property.
|
void |
setLocation(LatLng value)
Sets new value for location property.
|
void |
setQuery(java.lang.String value)
Sets new value for query property.
|
void |
setRadius(double value)
Sets new value for radius property.
|
void |
setType(java.lang.String value)
Sets new value for types property.
|
void |
setTypes(java.lang.String[] value)
Deprecated.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public TextSearchRequest()
@Deprecated public TextSearchRequest(Map map)
map
- owner Map objectpublic LatLngBounds getBounds()
Contains the Bounds used to bias results when searching for Places (optional). Both location and radius will be ignored if bounds is set. Results will not be restricted to those inside these bounds; but, results inside it will rank higher.
setBounds(com.teamdev.jxmaps.LatLngBounds)
public void setBounds(LatLngBounds value)
value
- new property valuegetBounds()
public LatLng getLocation()
Contains the center of the area used to bias results when searching for Places.
setLocation(com.teamdev.jxmaps.LatLng)
public void setLocation(LatLng value)
value
- new property valuegetLocation()
public java.lang.String getType()
Restricts the Place search results to Places with a type matching of the specified type
setTypes(java.lang.String[])
public void setType(java.lang.String value)
value
- new property valuegetType()
@Deprecated public java.lang.String[] getTypes()
Restricts the Place search results to Places with a type matching at least one of the specified types. Deprecated.
setTypes(java.lang.String[])
@Deprecated public void setTypes(java.lang.String[] value)
value
- new property valuegetTypes()
public double getRadius()
Contains the radius of the area used to bias results when searching for Places, in meters.
setRadius(double)
public void setRadius(double value)
value
- new property valuegetRadius()
public java.lang.String getQuery()
Contains the request's query term. e.g. the name of a place ('Eiffel Tower'), a category followed by the name of a location ('pizza in New York'), or the name of a place followed by a location disambiguator ('Starbucks in Sydney').
setQuery(java.lang.String)
public void setQuery(java.lang.String value)
value
- new property valuegetQuery()