Skip to content

Files

Latest commit

2257c79 · May 26, 2024

History

History
29 lines (22 loc) · 725 Bytes

pt_objects.md

File metadata and controls

29 lines (22 loc) · 725 Bytes

Public Transport objects

A client class to interact with the Navitia API for fetching public transport objects.

Official documentation: https://doc.navitia.io/#pt-objects

Property: NavitiaClient.pt_objects

Methods

    list_public_transport_objects(
        region_id: str,
        query: str,
        type: Sequence[str] = [
            "network",
            "commercial_mode",
            "line",
            "route",
            "stop_area",
        ],
        disable_disruption: bool = False,
        depth: int = 1,
        post_query_filter: Optional[str] = None,
    ) -> Sequence[PtObject]:
        Retrieves a list of public transport objects for a specified region from the Navitia API.