BearingSmoothing

class BearingSmoothing

Options that impact bearing generation to not be fixed to location's bearing but also taking into the direction to the upcoming maneuver.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

enabled
Link copied to clipboard
var enabled: Boolean = true
If enabled, the following frame's bearing won't exactly reflect the bearing returned by the Location from MapboxNavigationViewportDataSource.onLocationChanged but will also be affected by the direction to the upcoming framed geometry, to maximize the viewable area.
maxBearingAngleDiff
Link copied to clipboard
var maxBearingAngleDiff: Double = 45.0
When enabled, this controls how much the following frame's bearing can deviate from the Location bearing, in degrees.