// test print routine public void print() { System.out.println("Name: " + name); System.out.println( "Location: " + geometry.getLocation1().getLat().toString() + ", " + geometry.getLocation1().getLng().toString()); System.out.println("Address: " + address); }
public String getStringLatLng() { String stringLat = String.valueOf(geometry.getLocation1().getLat()); String stringLng = String.valueOf(geometry.getLocation1().getLng()); String stringLatLng = stringLat + "," + stringLng; System.out.println("STRING LAT LNG" + stringLatLng); return stringLatLng; }
public ArrayList<String> getItemModelStringArray() { // Indexes: 0: geometry 1: icon 2: id 3: name 4: placeId 5: directions 6: stringLatLng // trevor** icon,id,name,placeId are already strings, toString=unnecessary ArrayList<String> StringArray = new ArrayList<>(); StringArray.add(geometry.toString()); StringArray.add(icon); StringArray.add(id); StringArray.add(name); StringArray.add(placeId); StringArray.add(address); StringArray.add(getStringLatLng()); return StringArray; }
public LatLng getCourtLatLng() { LatLng courtLatLng = new LatLng(geometry.getLocation1().getLat(), geometry.getLocation1().getLng()); return courtLatLng; }