Service Ridership Dashboard GTFS¶
This page documents gtfs functions in the Service Ridership Dashboard module.
ingestor.chalicelib.service_ridership_dashboard.gtfs
¶
get_routes_by_line(include_only_line_ids)
¶
Fetch routes from the latest GTFS feed and group them by their parent line.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
include_only_line_ids
|
Optional[list[str]]
|
If provided, only include routes belonging to these line IDs. |
required |
Returns:
| Type | Description |
|---|---|
dict[Line, Route]
|
A dictionary mapping Line objects to their associated Route objects. |