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

NameTypeRequiredDescription
from_latnumberyesOrigin latitude
from_lonnumberyesOrigin longitude
to_latnumberyesDestination latitude
to_lonnumberyesDestination longitude
travel_modestringnoTravel 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.

Regenerated from source · build September 2, 2026