Distance
Great-circle distance and initial bearing between two points.
GET
/api/v1/geo/distanceQuery parameters
| Parameter | Description | Try value |
|---|---|---|
fromstring required | "lat,lon" | |
tostring required | "lat,lon" | |
apikeystring required | Your API key. Can also be sent as the X-API-Key header. | demo key used here |
Response envelope
Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.