POICategory

public struct POICategory

Structure containing POI category details.

Lifecycle

  • Creates a new POICategory

    Declaration

    Swift

    public init(
        id: POICategoryID,
        name: String,
        parents: [POICategoryID] = [],
        children: [POICategoryID] = [],
        synonyms: [String] = []
    )

Public

  • id

    Unique ID for the category.

    Declaration

    Swift

    public let id: POICategoryID
  • Name of the category.

    Declaration

    Swift

    public let name: String
  • The parent category identifiers for the given category.

    Declaration

    Swift

    public let parents: [POICategoryID]
  • The children of the category.

    Declaration

    Swift

    public let children: [POICategoryID]
  • List of alternative names for the category.

    Important

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

    Declaration

    Swift

    public let synonyms: [String]