Distance calculator API
Distance calculator API: great-circle (haversine) distance between two coordinates in km, miles, and nautical miles, plus initial compass bearing. Deterministic and auditable — cheaper than burning reasoning tokens, zero arithmetic-hallucination risk, and the result can be cited. For logistics, travel, delivery, and geo agents. Pairs with /geocode-city for name inputs.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
235 msmedian answer time
$0.005listed price per call
$0.005price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402.forgemesh.io/distance-between
| Category | Market data |
|---|---|
| Provider host | x402.forgemesh.io |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.005 | 249 ms |
| 2026-11-25 | valid payment request | 402 | $0.005 | 234 ms |
| 2026-11-24 | valid payment request | 402 | $0.005 | 261 ms |
| 2026-11-23 | valid payment request | 402 | $0.005 | 248 ms |
| 2026-11-22 | valid payment request | 402 | $0.005 | 230 ms |
| 2026-11-21 | valid payment request | 402 | $0.005 | 234 ms |
| 2026-11-20 | valid payment request | 402 | $0.005 | 235 ms |
| 2026-11-19 | valid payment request | 402 | $0.005 | 249 ms |
| 2026-11-18 | valid payment request | 402 | $0.005 | 241 ms |
| 2026-11-17 | valid payment request | 402 | $0.005 | 239 ms |
| 2026-11-16 | valid payment request | 402 | $0.005 | 240 ms |
| 2026-11-15 | valid payment request | 402 | $0.005 | 243 ms |
| 2026-11-14 | valid payment request | 402 | $0.005 | 238 ms |
| 2026-11-13 | valid payment request | 402 | $0.005 | 240 ms |
| 2026-11-12 | valid payment request | 402 | $0.005 | 245 ms |
Example input (from the provider)
{
"body": {
"lat1": "29.76",
"lat2": "40.71",
"lon1": "-95.36",
"lon2": "-74.00"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"lat1": {
"type": "string"
},
"lat2": {
"type": "string"
},
"lon1": {
"type": "string"
},
"lon2": {
"type": "string"
}
},
"required": [
"lat1",
"lon1",
"lat2",
"lon2"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}