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

Model

The navigator model intended to be displayed in the UI.

Methods
Properties

Navigator status.

Navigator status.

The current location the navigator is working with.

see location_available_channel

The current location the navigator is working with.

see location_available_channel

A flag that indicates whether the current location is used for navigation. After receiving the location, the navigator decides whether it is suitable for using it for navigation (for example, if the location has too large an error, 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

A flag that indicates whether the current location is used for navigation. After receiving the location, the navigator decides whether it is suitable for using it for navigation (for example, if the location has too large an error, 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 freeride mode (StateChannel::FreeRoam) there is no route on which the user is moving. Therefore, the section of the road on which the user is currently moving is represented by the navigator as a route and returns it as the current route. This road description is not a full-fledged route, because it does not have a finish and maneuvers.

Route with maneuvers.

In freeride mode (StateChannel::FreeRoam) there is no route on which the user is moving. Therefore, the section of the road on which the user is currently moving is represented by the navigator as a route and returns it as the current route. This road description is not a full-fledged route, because it does not have a finish and maneuvers.

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.

The user's current position on the route.

The user's current position on the route.

Flag of exceeding the maximum allowed speed.

Flag of exceeding the maximum allowed speed.

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

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