GoogleGeoCoder geoCoder = iocRegistry.getService(GoogleGeoCoder.class);
GeoCodeLocation location = new GeoCodeLocation(Locale.getDefault(), "street", "country", "state", "zipCode", "city");
GeoCodeResult result = geoCoder.getGeoCode(location);
System.out.println("Status: " + result.getStatus().getCode())
if (result.getStatus().getCode() == GeoCodeResult.G_GEO_SUCCESS)
{
for (Placemark placemark : result.getPlacemarks())
{
LatLng latLng = placemark.getLatLng();
System.out.println(String.format("Lat/Lng for '%s': %f/%f",
placemark.getAddress(), latLng.getLatitude(), latLng.getLongitude());
}
}