PointOfInterest

public struct PointOfInterest : Decodable, Hashable, Sendable
extension PointOfInterest: CustomDebugStringConvertible
extension PointOfInterest: ShortStringConvertible
  • id

    Unique identifier of the point of interest.

    Declaration

    Swift

    public let id: Int
  • Name of the point of interest.

    Declaration

    Swift

    public let name: String
  • Type of the point of interest.

    The type of the POI impacts which image URL is used to show POI on Map/in AR. For example:

    • category - imageURL is used
    • picture - mediaURL is used
    • video - mediaThumbnailURL is used

    Default is .category.

    Declaration

    Swift

    public let type: PointOfInterestType
  • Coordinate of the point of interest.

    Declaration

    Swift

    public let coordinate: Coordinate
  • Declaration

    Swift

    public let description: String?
  • Declaration

    Swift

    public let address: String?
  • URL of the image representing the point of interest. Used for POI of type category.

    Declaration

    Swift

    public let imageURL: String?
  • Declaration

    Swift

    public let tags: [String]
  • URL of the thumbnail image representing the point of interest. Used for POI of type video.

    Declaration

    Swift

    public let mediaThumbnailURL: String?
  • URL of the media representing the point of interest. Used for POI of type picture.

    Declaration

    Swift

    public let mediaURL: String?
  • Declaration

    Swift

    public let mediaType: String?
  • Declaration

    Swift

    public let customerID: String?
  • Declaration

    Swift

    public init(
        name: String, coordinate: Coordinate, type: PointOfInterestType = .category,
        description: String? = nil, address: String? = nil, imageURL: String? = nil, tags: [String] = [],
        mediaThumbnailURL: String? = nil, mediaURL: String? = nil, mediaType: String? = nil, customerID: String? = nil
    )
  • Declaration

    Swift

    public init(from decoder: Decoder) throws

CustomDebugStringConvertible

  • Declaration

    Swift

    public var debugDescription: String { get }

ShortStringConvertible

  • Declaration

    Swift

    public var shortDescription: String { get }