Spatial Queries
Geodesic distance between two points
Calculate the geodesic distance between two points on the WGS84 ellipsoid using Karney's algorithm (sub-nanometer precision). Returns distance in both meters and miles.
get/v1/distance
Request
- Base URL: https://api.terranode.co
- URL: https://api.terranode.co/v1/distance
- Auth: API key in header x-api-key
Query parameters
lat1number required
Latitude of the first point.
lng1number required
Longitude of the first point.
lat2number required
Latitude of the second point.
lng2number required
Longitude of the second point.
Response
Distance result.
Changes
No recorded changes to this operation across all 1 revision of this API.