thejourneyplanner.computation package¶
Submodules¶
thejourneyplanner.computation.route_planning module¶
route_planning.py: Functions for route planning.
- class thejourneyplanner.computation.route_planning.RoutePlanner(api_key: str)¶
Bases:
objectFinds a route between two locations with intermediate stops.
- plan_route(start: str, end: str, duration: float) dict[str, str | float]¶
Plan the route by finding nearby points of interest.
- Parameters:
start (str) – The starting location for the journey.
end (str) – The ending location for the journey.
duration (float) – The total duration of the journey, in seconds.
- Returns:
A dictionary containing the route information, including duration and distance.
- Return type:
dict[str, str | float]
Notes
This method initializes the journey and iteratively finds nearby places until the remaining duration is exhausted or no more reachable places are found.
Module contents¶
Computation package for the project.