Get Travel Times
wsdot_get_travel_timesReturns current vs. average travel times for named WA highway corridors (I-5, I-90, SR 520, SR 99, I-405, SR 167, etc.). Use for "how congested is I-5?" or commute time estimates. The route filter matches two ways: a route designation ("I-5", "5", "SR 520") returns every corridor measured on that route, and any text also matches corridor names ("Everett"). When current time exceeds average, the corridor is congested. Results are paged — pass offset/limit to page through the full set (the notice reports the next offset).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum corridors to return in this page (1–500). Defaults to 50. | |
| route | No | Optional filter. A route designation — "I-5", "5", "005", "SR 520", "520" — matches every corridor whose start or end point is on that route, whichever form the feed reports. Any text also matches the corridor name as a case-insensitive substring, so "Everett" finds the Seattle-Everett corridors. Omit to return all corridors. | |
| offset | No | Zero-based index of the first corridor to return, for paging. Defaults to 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Informational note about the page window, or guidance when no corridors matched the route filter or the offset ran past the end. | |
| hasMore | No | True when more corridors remain beyond the current page. | |
| corridors | No | Travel time corridors matching the filter. | |
| nextOffset | No | Offset to pass to retrieve the next page, or null when this is the last page. | |
| totalCount | No | Total corridors matching the filter across all pages (not just this page). | |
| routeFilter | No | The route name filter applied (lowercased), or absent if no filter was used. |