Walking, cycling and transit times
travel_timesCounts 1 request per point, whatever the modes; a batch needs a key. Minutes to the nearest place of each amenity type by each mode asked, with basis (block or hexagon) and links.map. points answers a batch in rows, failed points in errors. Next: nearby_places for names, get_catalog for types and coverage.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "travel_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude, decimal degrees (Canada 41.6 to 83.2). | |
| lon | No | Longitude, decimal degrees (Canada -141.1 to -52.6). | |
| lang | No | en or fr. | |
| modes | No | Default walk. | |
| types | No | Default every type. | |
| period | No | Transit modes; default weekday_peak, others need a key. | |
| points | No | 1–100 points in place of lat, lon (key); a label comes back with its row. | |
| api_key | No | Key from check_sign_in, if this client sends none. | |
| include | No | One point only. | |
| statistic | No | Transit modes: p50 typical (default), p90 worst case (key). | |
| walk_budget | No | Also the map link's budget. It does not filter the times. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| rows | No | A batch: one row per point; a time is a number where its reason is ok, else {minutes, reason}. | |
| links | No | ||
| modes | Yes | ||
| errors | No | ||
| minutes | No | {type: {mode: {minutes, reason}}}. |