Model | iOS SDK | Urbi Documentation
iOS SDK

Model

Navigator model designed to be displayed in the UI.

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

Returns a Boolean value indicating whether two values are equal.

Methods
Properties
StatefulChannel<State>

Navigator state.

Navigator state.

StatefulChannel<Location?>

The current geoposition that the navigator is working with.

The current geoposition that the navigator is working with.

StatefulChannel<Bool>

Flag that indicates whether the current geoposition is used for navigation. After receiving the geoposition, the navigator decides if it is suitable to be used for navigation (for example, if the geoposition has too much error, the navigator may decide that it is not suitable for navigation). If the geoposition is suitable for navigation, the navigator sets this channel to true, if not, it sets it to false.

Flag that indicates whether the current geoposition is used for navigation. After receiving the geoposition, the navigator decides if it is suitable to be used for navigation (for example, if the geoposition has too much error, the navigator may decide that it is not suitable for navigation). If the geoposition is suitable for navigation, the navigator sets this channel to true, if not, it sets it to false.

StatefulChannel<RouteInfo>

Route with maneuvers.

Route with maneuvers.

StatefulChannel<DynamicRouteInfo>

Traffic events and traffic data on the route or on the predicted part of the route for FreeRoam mode.

Traffic events and traffic data on the route or on the predicted part of the route for FreeRoam mode.

StatefulChannel<RoutePoint?>

Current user position on the route.

Current user position on the route.

StatefulChannel<Bool>

Flag of exceeding the maximum allowed speed.

Flag of exceeding the maximum allowed speed.

StatefulChannel<BetterRouteInfo?>

Signal about finding an alternative route with a shorter expected travel time. If the value in the channel is nil, it means that an alternative route is found or is no longer relevant.

Signal about finding an alternative route with a shorter expected travel time. If the value in the channel is nil, it means that an alternative route is found or is no longer relevant.

Measurement<UnitLength>?

Distance from the current position to the end of the route.

Travel time from the current position to the end of the route.