ferrobus.create_transit_point#
- ferrobus.create_transit_point(lat, lon, transit_model, max_walking_time=1200, max_nearest_stops=10)#
Create a transit point at specified geographic coordinates
Creates a location entity connected to the transit network that can be used as an origin or destination in routing operations.
- Parameters:
lat (float) – Latitude coordinate of the point.
lon (float) – Longitude coordinate of the point.
transit_model (TransitModel) – The transit model to which the point should be connected.
max_walking_time (int, default=1200) – Maximum walking time in seconds this point can connect to the network.
max_nearest_stops (int, default=10) – Maximum number of nearby transit stops to consider for connections.
- Returns:
A location point connected to the transit network.
- Return type:
- Raises:
ValueError – If the coordinates are invalid or unreachable in the transit network.
See also
TransitPointFor more details about transit points.