Multi-stop route
routeRoad route through 2 to 25 points in the given order: distance and time of every leg and the total, optionally with the route shape. Costs $0.001 per leg (N points = N-1 legs); nothing is charged if routing fails.
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": {
"points": "<points>"
},
"name": "route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Distance units: miles or kilometers. | mi |
| points | Yes | Stops in visiting order. | |
| vehicle | No | Travel mode. direct gives the straight-line (great-circle) distance with no travel time. | auto |
| geometry | No | Route shape to include: none, geojson (LineString of [lon, lat]) or polyline (Google encoded, precision 5). | none |
| priority | No | Fastest or shortest road route. | fast |