POIDetailsQuery
public struct POIDetailsQuery
Defines essential parameters to fetch POI Details data
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new POI Details query
Declaration
Swift
public init( poiID: POIID, locale: Locale = Locale.current, shouldFetchRelatedPOI: Bool = false )Parameters
poiIDthe identifier of the POI to fetch
localethe locale to describe POI Details info with a relevant language
relatedPoisdefines whether to include related POIs (if present) in the response
-
A unique POI identifier.
Declaration
Swift
public let poiID: POIID -
Specifies how to describe POI Details info with a relevant language
Note
List of supported languages: https://developer.tomtom.com/search-api/search-api-documentation/supported-languagesDeclaration
Swift
public let locale: Locale -
Defines whether to include related POIs (if present) in the response
Declaration
Swift
public let shouldFetchRelatedPOI: Bool
POIDetailsQuery Structure Reference