RouteEditor | iOS SDK | 2GIS Documentation
iOS SDK

RouteEditor

Interface for the route editor. The route editor receives start and end points of the route, builds routes and notifies about their updates and realignments via channels.
All methods of this interface are called from a single thread.

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
)

Creates a route editor.

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?>

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

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