TilesetDescriptorFactory
extension TilesetDescriptorFactory
-
Gets TilesetDescriptor which corresponds to current Navigator dataset and the specified
version.Declaration
Swift
public class func getSpecificVersion(forCacheLocation cacheLocation: TileStoreConfiguration.Location = .default, version: String, completionQueue: DispatchQueue = .main, completion: @escaping (TilesetDescriptor) -> Void)Parameters
cacheLocationA
Locationwhere cache data is stored.versionTilesetDescriptor version.
completionQueueA DispatchQueue on which the completion will be called.
completionA completion that will be used to pass the tileset descriptor.
-
Gets TilesetDescriptor that corresponds to the latest available version of routing tiles.
It is intended to be used when creating off-line tile packs.
Declaration
Swift
public class func getLatest(forCacheLocation cacheLocation: TileStoreConfiguration.Location = .default, completionQueue: DispatchQueue = .main, completion: @escaping (_ latestTilesetDescriptor: TilesetDescriptor) -> Void)Parameters
locationA
Locationwhere cache data is stored.completionQueueA DispatchQueue on which the completion will be called.
completionA completion that will be used to pass the latest tileset descriptor.
Install in Dash
TilesetDescriptorFactory Extension Reference