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, datasetProfileIdentifier: ProfileIdentifier = .automobile, completion: @escaping (TilesetDescriptor) -> Void)
Parameters
version
TilesetDescriptor version.
completionQueue
A DispatchQueue on which the completion will be called.
datasetProfileIdentifier
Profile setting, used for selecting tiles type for navigation.
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, datasetProfileIdentifier: ProfileIdentifier = .automobile, completion: @escaping (_ latestTilesetDescriptor: TilesetDescriptor) -> Void)
Parameters
completionQueue
A DispatchQueue on which the completion will be called.
datasetProfileIdentifier
Profile setting, used for selecting tiles type for navigation.
completion
A completion that will be used to pass the latest tileset descriptor.