get_patterns
Retrieve pattern points to draw a bus route or vehicle's path on a map. Provide pattern IDs or a route designator.
Instructions
Fetch pattern points for a comma-delimited list of pattern ids (pid, max 10), or all active patterns for a single route (rt). Provide exactly one of pid or rt, not both. Useful for drawing a route or vehicle's path on a map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | No | Route designator to fetch all active patterns for. Mutually exclusive with pid. | |
| pid | No | Comma-delimited pattern ids (max 10), e.g. the 'pid' field from a get_vehicle or get_predictions_for_stop result. Mutually exclusive with rt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |