MapTiles

FREEMIUM
Verified
By Support@MapTilesApi | Updated 3 months ago | Mapping
Popularity

9.9 / 10

Latency

174ms

Service Level

100%

Back to All Discussions

Need API for getting country name based on longitude and latitude

avatar
nagarjuna1207
2 years ago

Need API endpoint for getting country name based on longitude and latitude

avatar
MapTilesApi commented 2 years ago

Hi Nagarjuna1207,

what you need is geocoding, but you asked at a map display api.

The Forward & Reverse Geocoding API here at RapidAPI could help you out: https://rapidapi.com/GeocodeSupport/api/forward-reverse-geocoding/

There you have to use the reverse geocoding endpoint with your lat and long and use the zoom parameter with a value of 3 to get the country name.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 4.7 - Votes: 3