OfflineRouteProjectionEngineOptions
class OfflineRouteProjectionEngineOptions(val projectionLength: Distance = DEFAULT_PROJECTION_LENGTH, val windowLength: Distance = DEFAULT_WINDOW_LENGTH, val overlapLength: Distance = DEFAULT_OVERLAP_LENGTH)
Options used by OfflineRouteProjectionEngineFactory to create RouteProjectionEngine.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
projectionLength
Determines how far ahead of the current position the route should be projected. In cases where the projection length is already covered by the RouteProjectionEngine, the next projection is not executed until the user makes progress on the route.
windowLength
Determines the length of one projection window.
overlapLength
Determines how much distance should be taken from older sections and included in a new projection. When overlap is insufficient, then merging of projection sections might result in gaps within the route.
Constructors
Link copied to clipboard
fun OfflineRouteProjectionEngineOptions(projectionLength: Distance = DEFAULT_PROJECTION_LENGTH, windowLength: Distance = DEFAULT_WINDOW_LENGTH, overlapLength: Distance = DEFAULT_OVERLAP_LENGTH)