Skip to content

Occupancy

tubeulator.api.endpoint.routes.occupancy

Accessed via dynamic method resolution under tubeulator.fetch.occupancy.

Example: tubeulator.fetch.occupancy.meta_modes()

>>> ccs = fetch.occupancy.charge_connector_ids(ids="ChargePointCM-BPT62200886-143260")
>>> len(ccs)
1
>>> print(ccs[0].model_dump_json(indent=2))
{
  "Id": 62824,
  "SourceSystemPlaceId": "ChargePointCM-BPT62200886-143260",
  "Status": "Available"
}

OccupancyEndpointRoutes

Bases: RouteEnum

bike_points class-attribute instance-attribute

bike_points = '/BikePoints/{ids}'

Get the occupancy for bike points.

car_park class-attribute instance-attribute

car_park = '/CarPark'

Gets the occupancy for all car parks that have occupancy data

car_park_id class-attribute instance-attribute

car_park_id = '/CarPark/{id}'

Gets the occupancy for a car park with a given id

charge_connector class-attribute instance-attribute

charge_connector = '/ChargeConnector'

Gets the occupancy for all charge connectors

charge_connector_ids class-attribute instance-attribute

charge_connector_ids = '/ChargeConnector/{ids}'

Gets the occupancy for a charge connectors with a given id (sourceSystemPlaceId)