Great-circle distance and bearing between two places
world_distanceGreat-circle distance and bearing between two places. Geocodes both place names via Nominatim, then computes haversine distance (km, miles) and initial bearing. Use for travel planning or proximity checks. Price $0.005 per call (x402: USDC on Base or Solana).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "world_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination place name or address | |
| tx | No | Alternative to the X-Payment-Tx header | |
| from | Yes | Origin place name or address |