DefaultRouteEditorViewModel
Constructors
Properties
Optional provider for fetching ETAs for non-selected transport modes. When provided, enables displaying estimated times for all transport modes in the UI. Note: This will make additional API requests which may count towards your usage quota. The currently selected transport mode's ETA is always obtained from the full route.
Provider for creating route search options for different transport modes. Can be customized by implementing the interface and overriding specific methods for the transport modes that need custom routing behavior.
Current UI state containing route information, selected transport mode, point titles, and route options.
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.