Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use OpenStreetMap to get the country name for a given set of GPS coordinates

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

like image 732
Freude Avatar asked Aug 22 '17 18:08

Freude


People also ask

How do I find the latitude and longitude of a geocoder address?

The short story is you need to do: Geocoder geocoder = new Geocoder(this, Locale. getDefault()); List<Address> addresses = geocoder. getFromLocation(lat, lng, 1);


1 Answers

Take a look at Nominatim or one of the other OSM-based search engines (geocoders).

like image 200
scai Avatar answered Jan 03 '23 02:01

scai