ru.dgis.sdk.navigation.Model | Android SDK | 2GIS Documentation

Model

Navigator model intended to be displayed in the UI.

Methods
Properties

Navigator state.

Navigator state.

Current location that the navigator is working with.

See location_available_channel.

Current location that the navigator is working with.

See location_available_channel.

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

Even if the value in this channel is false, the location_channel can be updated in the location_channel.

See location_channel.

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

Even if the value in this channel is false, the location_channel can be updated in the location_channel.

See location_channel.

Route with maneuvers.

In the free roam mode (StateChannel::FreeRoam), there is no route on which a user is traveling. Therefore, the section of the road on which the user is currently moving is represented by the navigator as a route and returned as the current route. This type of road definition is not a complete route as it lacks a finish point and maneuvers.

Route with maneuvers.

In the free roam mode (StateChannel::FreeRoam), there is no route on which a user is traveling. Therefore, the section of the road on which the user is currently moving is represented by the navigator as a route and returned as the current route. This type of road definition is not a complete route as it lacks a finish point and maneuvers.

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

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

Current user position on the route.

Current user position on the route.

Flag of exceeding the maximum allowed speed limit.

Flag of exceeding the maximum allowed speed limit.

Signal indicating an alternative route with shorter expected travel time. The null value means that an alternative route cannot be found or has become outdated.

Signal indicating an alternative route with shorter expected travel time. The null value means that an alternative route cannot be found or has become outdated.