Skip to content

Files

Latest commit

2257c79 · May 26, 2024

History

History
43 lines (35 loc) · 1.35 KB

stop_schedules.md

File metadata and controls

43 lines (35 loc) · 1.35 KB

Stop schedules

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.