Service Ridership Dashboard Ridership¶
This page documents ridership functions in the Service Ridership Dashboard module.
ingestor.chalicelib.service_ridership_dashboard.ridership
¶
ridership_by_line_id(start_date, end_date, line_ids)
¶
Fetch ridership data for multiple lines and organize by line ID and date.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_date
|
date
|
The start date of the ridership query range. |
required |
end_date
|
date
|
The end date of the ridership query range. |
required |
line_ids
|
list[str]
|
A list of MBTA line identifiers to query ridership for. |
required |
Returns:
| Type | Description |
|---|---|
RidershipByLineId
|
A dictionary mapping line IDs to their respective ridership-by-date dictionaries. |