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 bothstandardID
andmapSpecificID
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
withstandardID
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
withmapSpecificID
specified. OptionalstandardID
property will returnnil
, and the non-optionalstandard
property will returnStandardCategoryID.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 fornonstandard
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 returnStandardCategoryID.nonstandard
fornil
.Declaration
Swift
public var standard: StandardCategoryID { get }