POICategoryID

public struct POICategoryID : Hashable

POI category ID.

  • Creates a new instance of the POICategoryID.

    Declaration

    Swift

    public init(standard: StandardCategoryID, mapSpecific: String? = nil)

    Parameters

    standard

    ID of a TomTom standard category.

    mapSpecific

    map-specific ID.

  • Creates a new instance of the POICategoryID with both standardID and mapSpecificID specified.

    Important

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

    Declaration

    Swift

    public init(standardID: StandardCategoryID, mapSpecificID: String)

    Parameters

    standardID

    ID of a TomTom standard category.

    mapSpecificID

    map-specific ID.

  • Creates a new instance of the POICategoryID with standardID specified.

    Important

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

    Declaration

    Swift

    public init(standardID: StandardCategoryID)

    Parameters

    standardID

    ID of a TomTom standard category.

  • Creates a new instance of the POICategoryID with mapSpecificID specified. Optional standardID property will return nil, and the non-optional standard property will return StandardCategoryID.nonstandard.

    Important

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

    Declaration

    Swift

    public init(mapSpecificID: String)

    Parameters

    mapSpecificID

    map-specific ID.

  • The map-specific identifier without any semantic information. This is an alias to mapSpecific. Useful for offline search.

    Important

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

    Declaration

    Swift

    public let mapSpecificID: String?
  • The ID of a TomTom standard category. This is an alias to standard and returns nil for nonstandard case.

    Important

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

    Declaration

    Swift

    public let standardID: StandardCategoryID?
  • The map-specific identifier without any semantic information. Useful for offline search.

    Declaration

    Swift

    public var mapSpecific: String? { get }
  • The ID of the POI category. This is identical to standardID except it will return StandardCategoryID.nonstandard for nil.

    Declaration

    Swift

    public var standard: StandardCategoryID { get }