API client for handling 'Line' entities in the Navitia API.
Official documentation: https://doc.navitia.io/#pt-ref
Property: NavitiaClient.lines
Methods:
list_entity_collection_from_region(
region_id: str,
start_page: int = 0,
count: int = 25,
depth: int = 1,
odt: str = "all",
distance: int = 200,
headsign: Optional[str] = None
) -> Tuple[Sequence[Line], Pagination]:
List lines for a given region.
get_entity_by_id(
region_id: str,
object_id: str,
start_page: int = 0,
count: int = 25,
depth: int = 1,
odt: str = "all",
distance: int = 200,
headsign: Optional[str] = None
) -> Tuple[Sequence[Line], Pagination]:
Get a line by its ID in a given region.
list_entity_collection_from_coordinates(
lon: float,
lat: float,
start_page: int = 0,
count: int = 25,
depth: int = 1,
odt: str = "all",
distance: int = 200,
headsign: Optional[str] = None
) -> Tuple[Sequence[Line], Pagination]:
List lines for given geographic coordinates.
get_entity_by_id_and_coordinates(
lon: float,
lat: float,
object_id: str,
start_page: int = 0,
count: int = 25,
depth: int = 1,
odt: str = "all",
distance: int = 200,
headsign: Optional[str] = None
) -> Tuple[Sequence[Line], Pagination]:
Get a line by its ID for given geographic coordinates.