prefetchRoute

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

Prefetches tiles along a route.

Important: This is a Public Preview API. It may be changed or removed at any time.

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.