Skip to content

Instantly share code, notes, and snippets.

@kanytu
Created October 28, 2014 17:53
Show Gist options
  • Save kanytu/98de12dafa4ada696280 to your computer and use it in GitHub Desktop.
Save kanytu/98de12dafa4ada696280 to your computer and use it in GitHub Desktop.
Geocoder geocoder = new Geocoder(context);
List<Address> addrs = geocoder.getFromLocation(myLatitude, myLongitude, 1);
if (!addrs.isEmpty())
String myCountry = addrs.get(0).getCountryName();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment