๐Ÿ“

Distance Calculator API

Calculate the straight-line (great-circle) distance between two GPS coordinates using the Haversine formula. Returns meters, km, miles, and compass bearing. No external API.

API Docs $0.001 / request

About this tool

POST /maps/distance computes the Haversine (great-circle) distance between two coordinate pairs. All computation is done server-side with no external API calls. Also returns compass bearing (N, NE, E, SE, S, SW, W, NW) and bearing in degrees.

Quick Start

curl -X POST "https://api.iteratools.com/maps/distance" \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"from": {"lat": 48.8566, "lon": 2.3522}, "to": {"lat": 51.5074, "lon": -0.1278}}'