Poi

public struct Poi : Codable

A point of interest (POI) from the JSON search response.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Poi init method.

    Declaration

    Swift

    public init(
        name: String?,
        phone: String?,
        categorySet: [CategoryId]?,
        url: String?,
        categories: [String]?,
        classifications: [Classification]?,
        brands: [Brand]?
    )

    Parameters

    name

    The name of the POI.

    phone

    The phone number of the POI.

    categorySet

    The list of the most specific POI categories.

    url

    The URL of the POI.

    categories

    A list of categories the POI belongs to.

    classifications

    A list of classifications the POI belongs to.

    brands

    A list of brands the POI belongs to.

Public

  • The name of the POI.

    Declaration

    Swift

    public let name: String?
  • The phone number of the POI.

    Declaration

    Swift

    public let phone: String?
  • The list of the most specific POI categories.

    Declaration

    Swift

    public let categorySet: [CategoryId]?
  • url

    The URL of the POI.

    Declaration

    Swift

    public let url: String?
  • A list of categories the POI belongs to.

    Declaration

    Swift

    public let categories: [String]?
  • A list of classifications the POI belongs to.

    Declaration

    Swift

    public let classifications: [Classification]?
  • A list of brands the POI belongs to.

    Declaration

    Swift

    public let brands: [Brand]?