PoiDetailsService
@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 PoiDetailsService : 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 the entry point for the POI Details Service. You shall attribute all results delivered by the Extended Search API Points of Interest Details endpoint and Points of Interest Photos endpoint as being: powered by Foursquare.
-
Initializer with a key for the Search API Key Service.
Declaration
Swift
@objc public init(key: String)
Parameters
apiKey
Search API Key.
-
Returns given POI PoiDetails object.
Declaration
Swift
@objc public func fetchPoiDetails(specification: PoiDetailsSpecification, completion: @escaping (_ poiDetails: PoiDetails?, _ error: NSError?) -> Void)
Parameters
specification
Protocol containing the id of the POI.
completion
Information about POI details