Calculate Route
calculate_routePlan routes between locations with turn-by-turn directions, distance, duration, and toll details. Supports car, caravan, bike, and pedestrian travel with traffic and alternative route options.
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.
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. |