PoiPhotoSize

@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 protocol PoiPhotoSize

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

If only one of them is provided, the image will be scaled according to that dimension. If none of them are provided, the service will return the original sized image. If both of them are provided, the service will fit, center, and crop the image to fill the desired dimensions. If the values provided are bigger than the original image dimensions, the service will return the original image.

  • The maximum height/width of the image.

    Declaration

    Swift

    @objc
    var width: Int { get set }
  • The maximum height of the image.

    Declaration

    Swift

    @objc
    var height: Int { get set }