API client for handling 'StopPoint' entities in the Navitia API.
Official documentation: https://doc.navitia.io/#pt-ref
Property: NavitiaClient.stop_points
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[StopPoint], Pagination]:
List stop points 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[StopPoint], Pagination]:
Get a stop point 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[StopPoint], Pagination]:
List stop points 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[StopPoint], Pagination]:
Get a stop point by its ID for given geographic coordinates.