OfflineRouteProjectionEngineOptions

fun OfflineRouteProjectionEngineOptions(projectionLength: Distance = DEFAULT_PROJECTION_LENGTH, windowLength: Distance = DEFAULT_WINDOW_LENGTH, overlapLength: Distance = DEFAULT_OVERLAP_LENGTH)

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.