Permalink
Browse files

Added query parameter to filter results from geo/search by name

  • Loading branch information...
1 parent 5f9c44c commit c2ff663c7ed6632735abd79cd6b7fbe73ae9a828 @jjthemachine committed Sep 2, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 twitter4j-core/src/main/java/twitter4j/GeoQuery.java
@@ -28,6 +28,7 @@
public final class GeoQuery implements java.io.Serializable {
private GeoLocation location;
+ private String query;
private String ip;
private String accuracy;
private String granularity;
@@ -60,6 +61,20 @@ public GeoLocation getLocation() {
return location;
}
+ /**
+ * Gets and Sets the query to filter Place results from geo/search
+ *
+ * @param query filters the results from geo/search by name
+ */
+
+ public String getQuery() {
+ return query
+ }
+
+ public String setQuery(String query) {
+ return this.query
+ }
+
public String getIp() {
return ip;
}
@@ -186,6 +201,7 @@ public int hashCode() {
public String toString() {
return "GeoQuery{" +
"location=" + location +
+ ", query='" + query + '\'' +
", ip='" + ip + '\'' +
", accuracy='" + accuracy + '\'' +
", granularity='" + granularity + '\'' +

0 comments on commit c2ff663

Please sign in to comment.