PoiPhotosService

@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 PoiPhotosService : 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

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(apiKey: String)

    Parameters

    apiKey

    Search API Key.

  • Function that allows to download a photo array using Poi Photo Ids.

    Declaration

    Swift

    @objc
    public func get(photos: [PoiPhotoSpecificationProtocol], completion: @escaping (_ photos: [UIImage]?, _ error: Error?) -> Void)

    Parameters

    photos

    Array of PoiPhotoSpecificationProtocol including photo parameters.

    completion

    Returns information about Poi Photos.

  • Function that allows to download a photo using Poi Photo Id.

    Declaration

    Swift

    @objc
    public func get(photo: PoiPhotoSpecificationProtocol, completion: @escaping (_ photo: UIImage?, _ error: Error?) -> Void)

    Parameters

    photo

    PoiPhotoSpecificationProtocol including photo parameters.

    completion

    Returns information about Poi Photo.