Calculate Route
calculate_routeCalculates a route between two or more locations via ANWB for car, caravan, bike, or pedestrian travel, returning distance, duration, turn-by-turn directions, toll data, and alternatives.
Instructions
Calculate a route between two or more locations using ANWB route planning. Supports car, caravan, bike, and pedestrian modes. Provide locations as latitude,longitude pairs separated by colons (e.g. '52.37,4.89:51.44,5.47'). Returns distance, duration, turn-by-turn directions, toll information (car/caravan only), and optional alternative routes. Use find_locations first to get coordinates for place names.
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": {
"locations": "<locations>"
},
"name": "calculate_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avoid | No | Road types to avoid. Options: tollRoads, motorways, ferries, unpavedRoads. Applies to car/caravan modes primarily. | |
| traffic | No | Take current traffic conditions into account (car/caravan mode only, ignored for bike/pedestrian). | |
| tollInfo | No | Include toll road information (car/caravan mode only, ignored for bike/pedestrian). | |
| locations | Yes | Waypoints as lat,lon pairs separated by colons. Minimum 2 points. Example: '52.373166,4.89066:51.441643,5.469722' (Amsterdam to Eindhoven). | |
| routeType | No | Route optimization: fastest (default) or shortest distance. Note: 'shortest' only works for bike and pedestrian modes. | fastest |
| transportMode | No | Transport mode: car (default), caravan, bike, or pedestrian. | car |
| transportSubtype | No | Bike subtype: 'bike' (regular) or 'ebike' (electric bicycle). Only applies when transportMode is 'bike'. | |
| includeAlternatives | No | Include alternative routes in the response. |