Does anybody know if there is a way to use OpenStreetMap (offline or API) to get the country name for a given set of GPS coordinates?
I'm not interested in using the Google or Geonames API mentioned here: Country name for GPS coordinates
The short story is you need to do: Geocoder geocoder = new Geocoder(this, Locale. getDefault()); List<Address> addresses = geocoder. getFromLocation(lat, lng, 1);
Take a look at Nominatim or one of the other OSM-based search engines (geocoders).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With