route
Pack: tomtom · Endpoint: https://gateway.pipeworx.io/tomtom/mcp
Traffic-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 })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
from_lat | number | yes | Origin latitude |
from_lon | number | yes | Origin longitude |
to_lat | number | yes | Destination latitude |
to_lon | number | yes | Destination longitude |
travel_mode | string | no | Travel mode for traffic-aware routing (default “car”) |
Example call
Arguments
{
"from_lat": 40.748,
"from_lon": -73.985,
"to_lat": 40.689,
"to_lon": -74.044,
"_apiKey": "your-tomtom-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/tomtom/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"route","arguments":{"from_lat":40.748,"from_lon":-73.985,"to_lat":40.689,"to_lon":-74.044,"_apiKey":"your-tomtom-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('route', {
"from_lat": 40.748,
"from_lon": -73.985,
"to_lat": 40.689,
"to_lon": -74.044,
"_apiKey": "your-tomtom-api-key"
});
More examples
{
"from_lat": 51.5074,
"from_lon": -0.1278,
"to_lat": 51.5165,
"to_lon": -0.0945,
"travel_mode": "pedestrian",
"_apiKey": "your-tomtom-api-key"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"tomtom": {
"url": "https://gateway.pipeworx.io/tomtom/mcp"
}
}
}
See Getting Started for client-specific install steps.