public static LatLng getLatLng(String address, String city, String state, String zip) throws IOException {
String url = "https://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=";
url += encodeUrl(String.format("%s, %s, %s %s", address, city, state, zip));
URLConnection connection = new URL(url).openConnection();
String data = IoUtils.toString(connection.getInputStream());
data = getTagContents(data, "location", 0);
return new LatLng(
getTagContents(data, "lat", 0),
getTagContents(data, "lng", 0)
);
}
}