// Path: app/src/main/java/team6/iguide/OverpassModel/OverpassElement.java
// public class OverpassElement implements Serializable{
// 
//     @Expose
//     private String type;
//     @Expose
//     private Long id;
//     @Expose
//     private OverpassCenter center;
//     @Expose
//     private List<Long> nodes = new ArrayList<Long>();
//     @Expose
//     private OverpassTags tags;
//     @Expose
//     private Double lat;
//     @Expose
//     private Double lon;
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public OverpassCenter getCenter() {
//         return center;
//     }
// 
//     public void setCenter(OverpassCenter center) {
//         this.center = center;
//     }
// 
//     public List<Long> getNodes() {
//         return nodes;
//     }
// 
//     public void setNodes(List<Long> nodes) {
//         this.nodes = nodes;
//     }
// 
//     public OverpassTags getTags() {
//         return tags;
//     }
// 
//     public void setTags(OverpassTags tags) {
//         this.tags = tags;
//     }
// 
//     public Double getLat() {
//         return lat;
//     }
// 
//     public void setLat(Double lat) {
//         this.lat = lat;
//     }
// 
//     public Double getLon() {
//         return lon;
//     }
// 
//     public void setLon(Double lon) {
//         this.lon = lon;
//     }
// 
// }
// 
// Path: app/src/main/java/team6/iguide/OverpassModel/OverpassModel.java
// public class OverpassModel implements Serializable{
// 
//     @Expose
//     private String version;
//     @Expose
//     private String generator;
//     @Expose
//     private OverpassOsm3s osm3s;
//     @Expose
//     private List<OverpassElement> elements = new ArrayList<>();
// 
// 
//     public String getVersion() {
//         return version;
//     }
// 
//     public void setVersion(String version) {
//         this.version = version;
//     }
// 
//     public String getGenerator() {
//         return generator;
//     }
// 
//     public void setGenerator(String generator) {
//         this.generator = generator;
//     }
// 
//     public OverpassOsm3s getOsm3s() {
//         return osm3s;
//     }
// 
//     public void setOsm3s(OverpassOsm3s osm3s) {
//         this.osm3s = osm3s;
//     }
// 
//     public List<OverpassElement> getElements() {
//         return elements;
//     }
// 
//     public void setElements(List<OverpassElement> elements) {
//         this.elements = elements;
//     }
// 
// }


import android.content.Context;
import android.support.design.widget.Snackbar;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.Volley;
import com.google.gson.Gson;
import com.mapbox.mapboxsdk.geometry.BoundingBox;
import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.MapView;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import team6.iguide.OverpassModel.OverpassElement;
import team6.iguide.OverpassModel.OverpassModel;
package team6.iguide;

/***
 iGuide
 Copyright (C) 2015 Cameron Mace

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */






public class Search {
    // When user searches for something, executeSearch is called.

    MapView mv;
    private RequestQueue mRequestQueue;
// Path: app/src/main/java/team6/iguide/OverpassModel/OverpassElement.java
// public class OverpassElement implements Serializable{
// 
//     @Expose
//     private String type;
//     @Expose
//     private Long id;
//     @Expose
//     private OverpassCenter center;
//     @Expose
//     private List<Long> nodes = new ArrayList<Long>();
//     @Expose
//     private OverpassTags tags;
//     @Expose
//     private Double lat;
//     @Expose
//     private Double lon;
// 
//     public String getType() {
//         return type;
//     }
// 
//     public void setType(String type) {
//         this.type = type;
//     }
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public OverpassCenter getCenter() {
//         return center;
//     }
// 
//     public void setCenter(OverpassCenter center) {
//         this.center = center;
//     }
// 
//     public List<Long> getNodes() {
//         return nodes;
//     }
// 
//     public void setNodes(List<Long> nodes) {
//         this.nodes = nodes;
//     }
// 
//     public OverpassTags getTags() {
//         return tags;
//     }
// 
//     public void setTags(OverpassTags tags) {
//         this.tags = tags;
//     }
// 
//     public Double getLat() {
//         return lat;
//     }
// 
//     public void setLat(Double lat) {
//         this.lat = lat;
//     }
// 
//     public Double getLon() {
//         return lon;
//     }
// 
//     public void setLon(Double lon) {
//         this.lon = lon;
//     }
// 
// }
// 
// Path: app/src/main/java/team6/iguide/OverpassModel/OverpassModel.java
// public class OverpassModel implements Serializable{
// 
//     @Expose
//     private String version;
//     @Expose
//     private String generator;
//     @Expose
//     private OverpassOsm3s osm3s;
//     @Expose
//     private List<OverpassElement> elements = new ArrayList<>();
// 
// 
//     public String getVersion() {
//         return version;
//     }
// 
//     public void setVersion(String version) {
//         this.version = version;
//     }
// 
//     public String getGenerator() {
//         return generator;
//     }
// 
//     public void setGenerator(String generator) {
//         this.generator = generator;
//     }
// 
//     public OverpassOsm3s getOsm3s() {
//         return osm3s;
//     }
// 
//     public void setOsm3s(OverpassOsm3s osm3s) {
//         this.osm3s = osm3s;
//     }
// 
//     public List<OverpassElement> getElements() {
//         return elements;
//     }
// 
//     public void setElements(List<OverpassElement> elements) {
//         this.elements = elements;
//     }
// 
// }


// Path: app/src/main/java/team6/iguide/Search.java
import android.content.Context;
import android.support.design.widget.Snackbar;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.Volley;
import com.google.gson.Gson;
import com.mapbox.mapboxsdk.geometry.BoundingBox;
import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.MapView;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
import team6.iguide.OverpassModel.OverpassElement;
import team6.iguide.OverpassModel.OverpassModel;

package team6.iguide;

/***
 iGuide
 Copyright (C) 2015 Cameron Mace

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */






public class Search {
    // When user searches for something, executeSearch is called.

    MapView mv;
    private RequestQueue mRequestQueue;
    OverpassModel results;