public class PlaceSearchRequest extends MapObject
Constructor and Description |
---|
PlaceSearchRequest()
Creates new PlaceSearchRequest object.
|
PlaceSearchRequest(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
getBounds()
Returns value of bounds property.
|
java.lang.String |
getKeyword()
Returns value of keyword property
|
LatLng |
getLocation()
Returns value of location property.
|
int |
getMaxPriceLevel()
Returns value of maxPriceLevel property
|
int |
getMinPriceLevel()
Returns value of minPriceLevel property
|
java.lang.String |
getName()
Returns value of name property
|
boolean |
getOpenNow()
Returns value of openNow property
|
double |
getRadius()
Returns value of radius property
|
RankBy |
getRankBy()
Returns value of rankBy property
|
java.lang.String[] |
getTypes()
Returns value of types property
|
void |
setBounds(LatLngBounds value)
Sets new value for bounds property.
|
void |
setKeyword(java.lang.String value)
Sets new value for keyword property
|
void |
setLocation(LatLng value)
Sets new value for location property
|
void |
setMaxPriceLevel(int value)
Sets new value for maxPriceLevel property
|
void |
setMinPriceLevel(int value)
Sets new value for minPriceLevel property
|
void |
setName(java.lang.String value)
Sets new value for name property
|
void |
setOpenNow(boolean value)
Sets new value for openNow property
|
void |
setRadius(double value)
Sets new value for radius property
|
void |
setRankBy(RankBy value)
Sets new value for rankBy property
|
void |
setTypes(java.lang.String[] value)
Sets new value for types property
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public PlaceSearchRequest()
@Deprecated public PlaceSearchRequest(Map map)
map
- owner Map objectpublic LatLngBounds getBounds()
Contains the bounds within which to search for Places. Both location and radius will be ignored if bounds is set.
setBounds(com.teamdev.jxmaps.LatLngBounds)
public void setBounds(LatLngBounds value)
value
- new property valuegetBounds()
public LatLng getLocation()
Contains the location around which to search for Places.
setLocation(com.teamdev.jxmaps.LatLng)
public void setLocation(LatLng value)
value
- new property valuegetLocation()
public java.lang.String getKeyword()
Contains 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.
setKeyword(java.lang.String)
public void setKeyword(java.lang.String value)
value
- new property valuegetKeyword()
public java.lang.String getName()
Contains the restriction for the Place search results to Places that include this text in the name.
setName(java.lang.String)
public void setName(java.lang.String value)
value
- new property valuegetName()
public java.lang.String[] getTypes()
Restricts the Place search results to Places with a type matching at least one of the specified types in this array.
setTypes(java.lang.String[])
public void setTypes(java.lang.String[] value)
value
- new property valuegetTypes()
public int getMaxPriceLevel()
Restricts results to only those places at the specified price level or lower. Valid values are in the range from 0 (most affordable) to 4 (most expensive), inclusive. Must be greater than or equal to minPrice , if specified.
setMaxPriceLevel(int)
public void setMaxPriceLevel(int value)
value
- new property valuegetMaxPriceLevel()
public int getMinPriceLevel()
Restricts results to only those places at the specified price level or higher. Valid values are in the range from 0 (most affordable) to 4 (most expensive), inclusive. Must be less than or equal to maxPrice, if specified.
setMinPriceLevel(int)
public void setMinPriceLevel(int value)
value
- new property valuegetMinPriceLevel()
public double getRadius()
Contains the distance from the given location within which to search for Places, in meters. The maximum allowed value is 50 000.
setRadius(double)
public void setRadius(double value)
value
- new property valuegetRadius()
public boolean getOpenNow()
Restricts results to only those places that are open right now.
setOpenNow(boolean)
public void setOpenNow(boolean value)
value
- new property valuegetOpenNow()
public RankBy getRankBy()
Specifies the ranking method to use when returning results.
setRankBy(com.teamdev.jxmaps.RankBy)
public void setRankBy(RankBy value)
value
- new property valuegetRankBy()