ferrobus.detailed_journey#
- ferrobus.detailed_journey(transit_model, start_point, end_point, departure_time, max_transfers=3)#
Find a detailed journey between two points in a transit network
Calculates a detailed multimodal route between two points, including walking and public transit segments. The result is returned as a GeoJSON string containing the full journey details.
- Parameters:
transit_model (TransitModel) – The transit model to use for routing.
start_point (TransitPoint) – Starting location for the journey.
end_point (TransitPoint) – Destination location for the journey.
departure_time (int) – Time of departure in seconds since midnight.
max_transfers (int, default=3) – Maximum number of transfers allowed in route planning.
- Returns:
A GeoJSON string representing the detailed journey, including all route segments and properties such as travel time and transfer details. Returns “null” if no route is found.
- Return type:
str
- Raises:
RuntimeError – If the journey calculation fails.