Need API endpoint for getting country name based on longitude and latitude
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.
הצטרף לדיון - הוסף תגובה למטה: