Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.33 KB

route_schedules.md

File metadata and controls

43 lines (35 loc) · 1.33 KB

Route shcedules

A client class to interact with the Navitia API for fetching route schedules.

Official documentation: https://doc.navitia.io/#route-schedules

Property: NavitiaClient.route_schedules

Methods

    list_route_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 = "base_schedule",
        disable_geojson: bool = False,
        direction_type: str = "all",
    ) -> Sequence[RouteSchedule]:
        Retrieves route schedules for a specified region and resource path from the Navitia API.

    list_route_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 = "base_schedule",
        disable_geojson: bool = False,
        direction_type: str = "all",
    ) -> Sequence[RouteSchedule]:
        Retrieves route schedules for a specified set of coordinates from the Navitia API.