geo_distance_matrix
Distance matrix (offline) — Great-circle distance matrix between up to 25 origins and 25 destinations, offline. origins (and optional destinations) = lat,lon points separated by |, each optionally labeled as name=lat,lon; without destinations you get the symmetric matrix among the origins. Returns the distance matrix (units=km or mi), a road estimate matrix (straight line x roadFactor, default 1.3) with drive-hours at speed= (default 80 km/h or 50 mph), the nearest and farthest destination per origin with bearing, a greedy 1:1 origin-to-destination assignment, and min/max/mean. Haversine on the WGS84 mean radius; no network calls. Price: $0.003 USDC (Base, via x402).
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": {
"origins": "<origins>",
"destinations": "<destinations>"
},
"name": "geo_distance_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origins | Yes | e.g. Nashville=36.1627,-86.7816|Memphis=35.1495,-90.0490 | |
| destinations | Yes | e.g. Atlanta=33.7490,-84.3880|Chicago=41.8781,-87.6298|Dallas=32.7767,-96.7970 |