prefetchRoute

abstract fun prefetchRoute(polyline: List<GeoPoint>, corridorWidth: Distance = DEFAULT_PREFETCH_CORRIDOR_WIDTH)

Prefetches tiles along a route.

Parameters

polyline

The points of the route.

corridorWidth

The width of the corridor along the route. The value must be non-negative and at maximum MAX_PREFETCH_CORRIDOR_WIDTH. The parameter defaults to DEFAULT_PREFETCH_CORRIDOR_WIDTH.

Throws

If any of the arguments is invalid.