route
routeRead-only
Directions between places (addresses, names or lat,lon) with optional stops: distance in km and miles, travel time, and turn-by-turn steps for driving, trucks, cycling, walking or transit, avoiding tolls, highways or ferries; optional GeoJSON route line. Costs $0.004 USDC per call (x402).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| via | No | Stops separated by | | |
| from | Yes | ||
| mode | No | drive (default), truck, bicycle, walk, transit, ... | |
| avoid | No | tolls|highways|ferries | |
| units | No | metric or imperial | |
| geometry | No | true to include the route line |