OfflineReverseGeocoder
public final class OfflineReverseGeocoder : ReverseGeocoder
The OfflineReverseGeocoder
allows developers to use our geocoder engine with an onboard map and sync map access.
-
OfflineReverseGeocoder
‘s initializer.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init(store: MapDataStore) throws
-
Defines error that might happen during reverse geocoding
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum GeocodeError : Error
-
Reverse Geocoding API gives users a tool to translate a coordinate (for example: 37.786505, -122.3862) into a human-understandable street address, street element, or geography.
Declaration
Swift
public func reverseGeocode( options: TomTomSDKReverseGeocoder.ReverseGeocoderOptions, completion: @escaping (Result<TomTomSDKReverseGeocoder.ReverseGeocoderResponse, Error>) -> () )
Parameters
options
The
ReverseGeocoderOptions
completion
Parameter completion: The completion closure is called after the response to the request has been processed. If no errors occurred,
ReverseGeocoderResponse
contains an array of categories and subcategories together with their translations and synonyms.