OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
route_planning.routing_controller_if.RoutingControllerIf Class Reference

Calculate routes between geographic locations. More...

Public Member Functions

bool is_available (self)
 Return whether route calculation is available.
str|None status_message (self)
 Return an availability or error message, if applicable.
RouteResult calculate_route (self, RouteRequest request)
 Calculate and return a route.

Detailed Description

Calculate routes between geographic locations.

Member Function Documentation

◆ calculate_route()

RouteResult route_planning.routing_controller_if.RoutingControllerIf.calculate_route ( self,
RouteRequest request )

Calculate and return a route.

Parameters
requestOrigin, destination, and travel mode.
Returns
Calculated route.

◆ is_available()

bool route_planning.routing_controller_if.RoutingControllerIf.is_available ( self)

Return whether route calculation is available.

Return values
TrueRoute calculation is available.
FalseRoute calculation is unavailable.

◆ status_message()

str | None route_planning.routing_controller_if.RoutingControllerIf.status_message ( self)

Return an availability or error message, if applicable.

Returns
Human-readable status, or None when no message applies.

The documentation for this class was generated from the following file:
  • controllers/route_planning/routing_controller_if.py