OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.navigation.route_request_handler_if.RouteRequestHandlerIf Class Reference

Start and cancel single-destination guidance. More...

Inheritance diagram for ui.navigation.route_request_handler_if.RouteRequestHandlerIf:
navigation.navigation_route_request_handler.NavigationRouteRequestHandler ui.navigation.route_request_handler_stub.RouteRequestHandlerStub

Public Member Functions

frozenset[TravelMode] supported_travel_modes (self)
 Expose the costing modes this handler can start routes with.
None request_start_route (self, GeoPoint destination, TravelMode travel_mode)
 Request route calculation and guidance.
None request_cancel_route (self)
 Request cancellation of active route guidance.

Detailed Description

Start and cancel single-destination guidance.

Advanced operations require their separate capability ABCs. Frontends use isinstance(handler, CapabilityIf) before exposing the corresponding controls.

Member Function Documentation

◆ request_start_route()

None ui.navigation.route_request_handler_if.RouteRequestHandlerIf.request_start_route ( self,
GeoPoint destination,
TravelMode travel_mode )

Request route calculation and guidance.

Parameters
destinationRequested final destination.
travel_modeRequested route costing mode.

Unsupported travel modes raise ValueError before starting a route.

Reimplemented in navigation.navigation_route_request_handler.NavigationRouteRequestHandler, and ui.navigation.route_request_handler_stub.RouteRequestHandlerStub.

◆ supported_travel_modes()

frozenset[TravelMode] ui.navigation.route_request_handler_if.RouteRequestHandlerIf.supported_travel_modes ( self)

Expose the costing modes this handler can start routes with.

Returns
Immutable set of supported route costing modes.

Reimplemented in navigation.navigation_route_request_handler.NavigationRouteRequestHandler, and ui.navigation.route_request_handler_stub.RouteRequestHandlerStub.


The documentation for this class was generated from the following file:
  • ui/navigation/route_request_handler_if.py