PredictiveCacheOptions

public struct PredictiveCacheOptions

Specifies the content that a predictive cache fetches and how it fetches the content.

Pass an instance of this class into the NavigationOptions(styles:navigationService:voiceController:topBanner:bottomBanner:predictiveCacheOptions:) initializer or NavigationMapView.enablePredictiveCaching(options:) method.

  • How far around the user’s location caching is going to be performed.

    Defaults to 2000 meters.

    Declaration

    Swift

    public var currentLocationRadius: CLLocationDistance
  • How far around the active route caching is going to be performed (if route is set).

    Defaults to 500 meters.

    Declaration

    Swift

    public var routeBufferRadius: CLLocationDistance
  • How far around the destination location caching is going to be performed (if route is set).

    Defaults to 5000 meters.

    Declaration

    Swift

    public var destinationLocationRadius: CLLocationDistance
  • Maxiumum amount of concurrent requests, which will be used for caching.

    Defaults to 2 concurrent requests.

    Declaration

    Swift

    public var maximumConcurrentRequests: UInt32
  • The Authorization & Authentication credentials that are used for this service. If not specified - will be automatically intialized from the token and host from your app’s info.plist.

    Declaration

    Swift

    public var credentials: Credentials