Route
routeTraffic-aware routing / directions: calculate the best route between two points and return distance plus travel time computed with live traffic. Reports traffic delay so you get realistic ETAs, not free-flow estimates. Supports car, truck, pedestrian, and bicycle travel modes. Example: route({ from_lat: 40.748, from_lon: -73.985, to_lat: 40.689, to_lon: -74.044 })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_lat | Yes | Destination latitude | |
| to_lon | Yes | Destination longitude | |
| _apiKey | No | Optional — your own TomTom API key for higher limits; omit to use the shared Pipeworx key. | |
| from_lat | Yes | Origin latitude | |
| from_lon | Yes | Origin longitude | |
| travel_mode | No | Travel mode for traffic-aware routing (default "car") |