TileCacheRouteProjectionEngineOptions

class TileCacheRouteProjectionEngineOptions(val projectionLength: Distance = DEFAULT_PROJECTION_LENGTH, val windowLength: Distance = DEFAULT_WINDOW_LENGTH, val overlapLength: Distance = DEFAULT_OVERLAP_LENGTH)

Options used by TileCacheRouteProjectionEngineFactory 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. The projection length should not be larger than com.tomtom.sdk.datamanagement.navigationtile.NavigationTileStoreConfiguration.prefetchedAreaRadius to ensure availability of map data for a whole projection length.

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 TileCacheRouteProjectionEngineOptions(projectionLength: Distance = DEFAULT_PROJECTION_LENGTH, windowLength: Distance = DEFAULT_WINDOW_LENGTH, overlapLength: Distance = DEFAULT_OVERLAP_LENGTH)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard