GET /v1/geo/nearest
Finds the closest city to given coordinates.
Authorization
ApiKeyAuth X-API-Key<token>
In: header
Query Parameters
lat*number
lng*number
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/geo/nearest?lat=0&lng=0"{ "success": true, "data": { "city": { "id": 1275339, "name": "Mumbai", "asciiName": "Mumbai", "state": "Maharashtra", "countryCode": "IN", "lat": 19.07283, "lng": 72.88261, "timezone": "Asia/Kolkata", "population": 12691836 } }}