Crowding Handler
Handler to interact with the crowding API.
CrowdingHandler
¶
Bases: base.TFLHandler
Handler to interact with the Crowding API.
Example
Source code in tfl/clients/handlers/_crowding_handler.py
get_crowding(naptan_code, day=None)
async
¶
Get information about crowding levels within TFL stations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
naptan_code |
str
|
The NAPTAN code of the station to get crowding information for. |
required |
day |
Optional[enums.DayOfWeekEnum]
|
The day to get crowding information for. |
None
|
Returns:
Type | Description |
---|---|
httpx.Response
|
The response from the API. |