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

Merged
merged 2 commits into from Nov 15, 2012
@@ -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 void setQuery(String query) {
+ this.query = 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 + '\'' +