A client class to interact with the Navitia API for fetching stop schedules.
Official documentation: https://doc.navitia.io/#stop-schedules
Property: NavitiaClient.stop_schedules
Methods
list_stop_schedules_by_coordinates(
region_lon: float,
region_lat: float,
lon: float,
lat: float,
from_datetime: datetime = datetime.now(),
duration: int = 86400,
depth: int = 1,
items_per_schedule: int = 1,
forbidden_uris: Optional[Sequence[str]] = None,
data_freshness: str = "realtime",
disable_geojson: bool = False,
direction_type: str = "all",
) -> Tuple[Sequence[StopSchedule], Pagination]:
Retrieves stop schedules for a specified set of coordinates from the Navitia API.
list_stop_schedules_by_region_id_and_path(
region_id: str,
resource_path: str,
from_datetime: datetime = datetime.now(),
duration: int = 86400,
depth: int = 1,
items_per_schedule: int = 1,
forbidden_uris: Optional[Sequence[str]] = None,
data_freshness: str = "realtime",
disable_geojson: bool = False,
direction_type: str = "all",
) -> Tuple[Sequence[StopSchedule], Pagination]:
Retrieves stop schedules for a specified region and resource path from the Navitia API.