// 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;
//     }
// 
// }


import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.InfoWindow;
import com.mapbox.mapboxsdk.views.MapView;
import java.util.List;
import team6.iguide.OverpassModel.OverpassElement;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import com.mapbox.mapboxsdk.geometry.BoundingBox;
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 CustomInfoWindow extends InfoWindow {
    // This is where we define what happens when the user clicks on a marker.

    private Context mContext;
    private String title;
    private String ref;
    private String address;
    private String country;
    private Double desLat;
    private Double desLon;
    private BoundingBox scrollLimit = new BoundingBox(29.731896194504913, -95.31928449869156, 29.709354854765827, -95.35668790340424);

// 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/CustomInfoWindow.java
import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.InfoWindow;
import com.mapbox.mapboxsdk.views.MapView;
import java.util.List;
import team6.iguide.OverpassModel.OverpassElement;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import com.mapbox.mapboxsdk.geometry.BoundingBox;

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 CustomInfoWindow extends InfoWindow {
    // This is where we define what happens when the user clicks on a marker.

    private Context mContext;
    private String title;
    private String ref;
    private String address;
    private String country;
    private Double desLat;
    private Double desLon;
    private BoundingBox scrollLimit = new BoundingBox(29.731896194504913, -95.31928449869156, 29.709354854765827, -95.35668790340424);

    public CustomInfoWindow(Context context, final MapView mv, final List<OverpassElement> searchResults, final int listPosition) {