@Generated(value="org.jsonschema2pojo") public class GeoSearchRequest extends Object implements Serializable
Constructor and Description |
---|
GeoSearchRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Boolean |
getAccuracy()
A hint on the region in which to search.
|
Map<String,Object> |
getAdditionalProperties() |
String |
getContainedWithin()
This is the place_id which you would like to restrict the search results to.
|
String |
getGranularity()
This is the minimal granularity of place types to return and must be one of: poi , neighborhood , city , admin or country .
|
String |
getIp()
An IP address.
|
Double |
getLat()
The latitude to search around.
|
Double |
getLong()
The longitude to search around.
|
Long |
getMaxResults()
A hint as to the number of results to return.
|
String |
getQuery()
Free-form text to match against while executing a geo-based query, best suited for finding nearby locations by name.
|
int |
hashCode() |
void |
setAccuracy(Boolean accuracy)
A hint on the region in which to search.
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setContainedWithin(String containedWithin)
This is the place_id which you would like to restrict the search results to.
|
void |
setGranularity(String granularity)
This is the minimal granularity of place types to return and must be one of: poi , neighborhood , city , admin or country .
|
void |
setIp(String ip)
An IP address.
|
void |
setLat(Double lat)
The latitude to search around.
|
void |
setLong(Double _long)
The longitude to search around.
|
void |
setMaxResults(Long maxResults)
A hint as to the number of results to return.
|
void |
setQuery(String query)
Free-form text to match against while executing a geo-based query, best suited for finding nearby locations by name.
|
String |
toString() |
GeoSearchRequest |
withAccuracy(Boolean accuracy) |
GeoSearchRequest |
withAdditionalProperty(String name,
Object value) |
GeoSearchRequest |
withContainedWithin(String containedWithin) |
GeoSearchRequest |
withGranularity(String granularity) |
GeoSearchRequest |
withIp(String ip) |
GeoSearchRequest |
withLat(Double lat) |
GeoSearchRequest |
withLong(Double _long) |
GeoSearchRequest |
withMaxResults(Long maxResults) |
GeoSearchRequest |
withQuery(String query) |
@BeanProperty(value="lat") public Double getLat()
@BeanProperty(value="lat") public void setLat(Double lat)
lat
- The latpublic GeoSearchRequest withLat(Double lat)
@BeanProperty(value="long") public Double getLong()
@BeanProperty(value="long") public void setLong(Double _long)
_long
- The longpublic GeoSearchRequest withLong(Double _long)
@BeanProperty(value="query") public String getQuery()
@BeanProperty(value="query") public void setQuery(String query)
query
- The querypublic GeoSearchRequest withQuery(String query)
@BeanProperty(value="ip") public String getIp()
@BeanProperty(value="ip") public void setIp(String ip)
ip
- The ippublic GeoSearchRequest withIp(String ip)
@BeanProperty(value="granularity") public String getGranularity()
@BeanProperty(value="granularity") public void setGranularity(String granularity)
granularity
- The granularitypublic GeoSearchRequest withGranularity(String granularity)
@BeanProperty(value="accuracy") public Boolean getAccuracy()
@BeanProperty(value="accuracy") public void setAccuracy(Boolean accuracy)
accuracy
- The accuracypublic GeoSearchRequest withAccuracy(Boolean accuracy)
@BeanProperty(value="max_results") public Long getMaxResults()
@BeanProperty(value="max_results") public void setMaxResults(Long maxResults)
maxResults
- The max_resultspublic GeoSearchRequest withMaxResults(Long maxResults)
@BeanProperty(value="contained_within") public String getContainedWithin()
@BeanProperty(value="contained_within") public void setContainedWithin(String containedWithin)
containedWithin
- The contained_withinpublic GeoSearchRequest withContainedWithin(String containedWithin)
@BeanProperty(name="*") public void setAdditionalProperty(String name, Object value)
public GeoSearchRequest withAdditionalProperty(String name, Object value)
Copyright © 2018 The Apache Software Foundation. All rights reserved.