Route Shape
route_shapeRetrieves the geographic shape of a TTC route by direction as an encoded polyline or GeoJSON, including stops, distances, optional simplification, and stop-to-stop slices.
Instructions
The geometry of a route and direction: the most-used stop pattern's shape (or another pattern by rank) as an encoded polyline or GeoJSON LineString, with its stops and their distance along the shape. Optional Douglas-Peucker simplification (metres) and a from_stop/to_stop span sliced by shape_dist_traveled (the first visit of each when a stop repeats).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | Yes | ||
| format | No | polyline | |
| pattern | No | ||
| to_stop | No | ||
| direction | Yes | ||
| from_stop | No | ||
| simplify_m | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||