Distance and direction between two places given as coordinates, DIGIPIN, Plus Code or Indian PIN code
distance_betweenGreat-circle distance (km and miles) and compass bearing between two points. Each point can be {lat,lng}, "13.08,80.27", a DIGIPIN, a Plus Code or a 6-digit Indian PIN code. Price 0.001 USDC per call; first 3 calls per day free.
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": "distance_between"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End point, same formats | |
| from | Yes | Start point: "lat,lng", DIGIPIN, Plus Code or Indian PIN (or an object {lat,lng}) | |
| payment | No | Optional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts. |