OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
route_planning.route_map_presenter Namespace Reference

Present calculated routes on the native map renderer. More...

Functions

None present_route (RouteResult route, MapRendererClient map_renderer, float padding=DEFAULT_ROUTE_PADDING)
 Display a route and fit the map camera to it.

Detailed Description

Present calculated routes on the native map renderer.

Function Documentation

◆ present_route()

None route_planning.route_map_presenter.present_route ( RouteResult route,
MapRendererClient map_renderer,
float padding = DEFAULT_ROUTE_PADDING )

Display a route and fit the map camera to it.

Parameters
routeCalculated route to display.
map_rendererClient connected to the native renderer.
paddingMap padding applied while fitting the route bounds.
Exceptions
ValueErrorIf the route has no shape points.