HybridReverseGeocoderFactory
public enum HybridReverseGeocoderFactory
Creates a hybrid reverse geocoding service. A hybrid reverse geocoding service wraps online and offline reverse geocoder services. When online service is unavailable offline service is automatically used to improve availability.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
HybridReverseGeocoderinstance.Throws
An error ifNDSStoreis invalid.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func create( apiKey: String, store: NDSStore, timeout: Measurement<UnitDuration> = .tt.seconds(5), customAPIURL: URL? = nil ) throws -> ReverseGeocoderParameters
apiKeyA valid TomTom API Key.
storeNDSStore offline map handle. Additionally,
NDSStoredefines the overall geopolitical view for both online and offline inHybridSearch. Configure the corresponding geopolitical view inNDSStoreConfigurationand initializeNDSStorewith it.timeoutThe duration after which primary geocoder results are ignored and the fallback geocoder starts handling the query.
customAPIURLCustom base URL for online APIs. Defaults to nil and “https://api.tomtom.com/search/2” will be the base URL. Can be used to change to another service that implements the same API.
Return Value
A new
ReverseGeocoderinstance to perform hybrid reverse geocoding requests.
TomTom SDK for iOS (0.40.0)
HybridReverseGeocoderFactory