public final class GeoQuery
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
| private java.lang.String | accuracy | 
| private java.lang.String | granularity | 
| private java.lang.String | ip | 
| private GeoLocation | location | 
| private int | maxResults | 
| private java.lang.String | query | 
| private static long | serialVersionUID | 
| Constructor and Description | 
|---|
| GeoQuery(GeoLocation location)Creates a GeoQuery with the specified location | 
| GeoQuery(java.lang.String ip)Creates a GeoQuery with the specified IP address | 
| Modifier and Type | Method and Description | 
|---|---|
| GeoQuery | accuracy(java.lang.String accuracy) | 
| private void | appendParameter(java.lang.String name,
               double value,
               java.util.List<twitter4j.internal.http.HttpParameter> params) | 
| private void | appendParameter(java.lang.String name,
               int value,
               java.util.List<twitter4j.internal.http.HttpParameter> params) | 
| private void | appendParameter(java.lang.String name,
               java.lang.String value,
               java.util.List<twitter4j.internal.http.HttpParameter> params) | 
| (package private) twitter4j.internal.http.HttpParameter[] | asHttpParameterArray() | 
| boolean | equals(java.lang.Object o) | 
| java.lang.String | getAccuracy() | 
| java.lang.String | getGranularity() | 
| java.lang.String | getIp() | 
| GeoLocation | getLocation() | 
| int | getMaxResults() | 
| java.lang.String | getQuery()Gets and Sets the query to filter Place results from geo/search | 
| GeoQuery | granularity(java.lang.String granularity) | 
| int | hashCode() | 
| GeoQuery | maxResults(int maxResults) | 
| void | setAccuracy(java.lang.String accuracy)Sets a hint on the "region" in which to search. | 
| void | setGranularity(java.lang.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(java.lang.String query) | 
| java.lang.String | toString() | 
private GeoLocation location
private java.lang.String query
private java.lang.String ip
private java.lang.String accuracy
private java.lang.String granularity
private int maxResults
private static final long serialVersionUID
public GeoQuery(GeoLocation location)
location - public GeoQuery(java.lang.String ip)
ip - IP addresspublic GeoLocation getLocation()
public java.lang.String getQuery()
public void setQuery(java.lang.String query)
public java.lang.String getIp()
public java.lang.String getAccuracy()
public void setAccuracy(java.lang.String accuracy)
accuracy - a hint on the "region" in which to search.public GeoQuery accuracy(java.lang.String accuracy)
public java.lang.String getGranularity()
public void setGranularity(java.lang.String granularity)
granularity - the minimal granularity of data to returnpublic GeoQuery granularity(java.lang.String granularity)
public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults - A hint as to the number of results to return.public GeoQuery maxResults(int maxResults)
twitter4j.internal.http.HttpParameter[] asHttpParameterArray()
private void appendParameter(java.lang.String name,
                   java.lang.String value,
                   java.util.List<twitter4j.internal.http.HttpParameter> params)
private void appendParameter(java.lang.String name,
                   int value,
                   java.util.List<twitter4j.internal.http.HttpParameter> params)
private void appendParameter(java.lang.String name,
                   double value,
                   java.util.List<twitter4j.internal.http.HttpParameter> params)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object