Is there an easy way to get the name of the country on whose territory a given point is located?
I don't care too much about accuracy nor about ambiguities given by political disputes. Just need a good enough approximation.
Is there an easy way to get the name of the country on whose territory a given point is located?
I don't care too much about accuracy nor about ambiguities given by political disputes. Just need a good enough approximation.
The Geonames API has changed a bit. More info here: https://www.geonames.org/export/web-services.html
A working example from that page:
curl "http://api.geonames.org/countryCode?lat=47.03&lng=10.2&username=demo"