Service Ridership Dashboard Service Levels¶
This page documents service level functions in the Service Ridership Dashboard module.
ingestor.chalicelib.service_ridership_dashboard.service_levels
¶
get_service_level_entries_by_line_id(routes_by_line, start_date, end_date)
¶
Query and aggregate service level data for all lines, organized by line ID and date.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
routes_by_line
|
RoutesByLine
|
A dictionary mapping Line objects to their associated routes. |
required |
start_date
|
date
|
The start date of the query range. |
required |
end_date
|
date
|
The end date of the query range. |
required |
Returns:
| Type | Description |
|---|---|
ServiceLevelsByLineId
|
A dictionary mapping line IDs to dictionaries of date-to-ServiceLevelsEntry mappings. |