RouteEditor | iOS SDK | 2GIS Documentation

RouteEditor

Interface for the route editor. The route editor gets the start and end points of the route, builds routes, and notifies you of updates and realignments through the channels.

Extends: Hashable
public static func == (lhs: RouteEditor, rhs: RouteEditor) -> Bool

Returns a Boolean value indicating whether two values are equal.

public convenience init(
    context: Context
)

Route editor creation function.

Parameters
context
Methods
Properties
StatefulChannel<RouteEditorRoutesInfo>

Channel through which you can monitor updates of route information operated by the editor.

Channel through which you can monitor updates of route information operated by the editor.

StatefulChannel<RouteIndex?>

The channel through which you can monitor updates of the active route index. If there are no routes, nil is placed in this channel.

The channel through which you can monitor updates of the active route index. If there are no routes, nil is placed in this channel.