TilesetDescriptorFactory
extension TilesetDescriptorFactory
-
Gets TilesetDescriptor which corresponds to current Navigator dataset and the specified
version
.Declaration
Swift
public class func getSpecificVersion(version: String, completionQueue: DispatchQueue = .main, completion: @escaping (TilesetDescriptor) -> Void)
Parameters
version
TilesetDescriptor version.
completionQueue
A DispatchQueue on which the completion will be called.
completion
A 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(completionQueue: DispatchQueue = .main, completion: @escaping (_ latestTilesetDescriptor: TilesetDescriptor) -> Void)
Parameters
completionQueue
A DispatchQueue on which the completion will be called.
completion
A completion that will be used to pass the latest tileset descriptor.