RouteEditorViewModel
ViewModel for managing route planning and editing functionality.
Provides methods for configuring route points, selecting transport modes, managing multiple route options, and initiating navigation. The UI state is exposed as a State that can be observed for changes.
Use DefaultRouteEditorViewModel for the default implementation with support for multiple transport modes, ETA calculations, and customizable route search options.
Inheritors
Properties
Functions
Updates the order of intermediate points and recalculates the route.
Initiates navigation with the currently selected route.
Selects a route from the list of calculated route options.
Changes the transport mode and recalculates the route.
Sets the route points and optionally the transport mode.
Swaps the start and destination points and recalculates the route.