Calculate Drive Times
calculate_drive_timesCalculate realistic drive times from an origin to multiple campgrounds using Mapbox routing with live traffic.
Uses the Mapbox Matrix API for traffic-aware routing. Maximum 9 destinations per request.
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": {
"origin_latitude": "<origin_latitude>",
"origin_longitude": "<origin_longitude>",
"destinations": "<destinations>"
},
"name": "calculate_drive_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destinations | Yes | List of {campground_id: str, latitude: float, longitude: float} (max 9) | |
| origin_latitude | Yes | Latitude of starting location | |
| origin_longitude | Yes | Longitude of starting location |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||