Skip to content

Instantly share code, notes, and snippets.

@rterp
Created July 13, 2016 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rterp/71e56b17b6fadb5e9972c235d4b2b993 to your computer and use it in GitHub Desktop.
Save rterp/71e56b17b6fadb5e9972c235d4b2b993 to your computer and use it in GitHub Desktop.
GeocodingService gs = new GeocodingService();
GeocoderRequest geocoderRequest = new GeocoderRequest("Sao Paulo");
gs.getGeocoding(geocoderRequest, (GeocodingResult[] results, GeocoderStatus status) -> {
System.out.println("Geocoding Results: " + results.length);
System.out.println("Lat long" + results[0].getGeometry().getLocation() );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment