SearchService

@available(*, message: "TT_API_PUBLIC_PREVIEW('byTheEndOf=2020.12', 'This is under Public Preview and subject to change until the end date. More information is available at: https://developer.tomtom.com/public-preview'﹚")
@objc
public class SearchService : NSObject

Public Preview

This is under Public Preview and subject to change by the end of 2020.12. More information is available at: https://developer.tomtom.com/public-preview

This is entry point for Search.

Inits

  • Initializer with key for the TomTom API Service.

    Declaration

    Swift

    @objc
    public init(apiKey: String)
  • The Place by Id service endpoint provides detailed information about the Place found by its identifier (placeID).

    Declaration

    Swift

    @objc
    public func get(placeId: String, completion: @escaping (_ response: [PlaceDetails]?, _ error: NSError?) -> Void)

    Parameters

    placeId

    placeId A unique POI identifier.

    completion

    completion PlaceDetails