public final class GeoQuery extends Object implements Serializable
Constructor and Description |
---|
GeoQuery(GeoLocation location)
Creates a GeoQuery with the specified location
|
GeoQuery(String ip)
Creates a GeoQuery with the specified IP address
|
GeoQuery(String query,
String ip,
GeoLocation location)
Creates a GeoQuery with the specified query, ip and location
|
Modifier and Type | Method and Description |
---|---|
GeoQuery |
accuracy(String accuracy) |
boolean |
equals(Object o) |
String |
getAccuracy() |
String |
getGranularity() |
String |
getIp() |
GeoLocation |
getLocation() |
int |
getMaxResults() |
String |
getQuery()
Gets the query to filter Place results from geo/search
|
GeoQuery |
granularity(String granularity) |
int |
hashCode() |
GeoQuery |
maxResults(int maxResults) |
void |
setAccuracy(String accuracy)
Sets a hint on the "region" in which to search.
|
void |
setGranularity(String granularity)
Sets the minimal granularity of data to return.
|
void |
setMaxResults(int maxResults)
Sets a hint as to the number of results to return.
|
void |
setQuery(String query) |
String |
toString() |
public GeoQuery(GeoLocation location)
location
- geo locationpublic GeoQuery(String ip)
ip
- IP addresspublic GeoQuery(String query, String ip, GeoLocation location)
query
- free-form text to matchip
- IP addresslocation
- geo locationpublic GeoLocation getLocation()
public String getQuery()
public void setQuery(String query)
public String getIp()
public String getAccuracy()
public void setAccuracy(String accuracy)
accuracy
- a hint on the "region" in which to search.public String getGranularity()
public void setGranularity(String granularity)
granularity
- the minimal granularity of data to returnpublic int getMaxResults()
public void setMaxResults(int maxResults)
maxResults
- A hint as to the number of results to return.public GeoQuery maxResults(int maxResults)
Copyright © 2018. All rights reserved.