OnlineReverseGeocoder

public final class OnlineReverseGeocoder : ReverseGeocoder

The Geo Coder is a REST wrapper for a suite of web services that allow developers to use our scalable geo coder engine.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • OnlineReverseGeocoder‘s initializer.

    Declaration

    Swift

    public convenience init(apiKey: String)

    Parameters

    apiKey

    a valid TomTom API Key.

Public

  • 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: ReverseGeocoderOptions,
        completion: @escaping (Result<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 places that were geocoded from a coordinate.