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.

Lifecycle

  • Creates a new POI Details query

    Important

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

    Declaration

    Swift

    public init(
        poiID: POIID,
        locale: Locale = Locale.current,
        shouldFetchRelatedPOI: Bool = false
    )

    Parameters

    poiID

    the identifier of the POI to fetch

    locale

    the locale to describe POI Details info with a relevant language

Public

  • A unique POI identifier.

    Important

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

    Declaration

    Swift

    public let poiID: POIID
  • Specifies how to describe POI Details info with a relevant language

    Important

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

    Declaration

    Swift

    public let locale: Locale
  • Defines whether to include related POIs (if present) in the response

    Important

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

    Declaration

    Swift

    public let shouldFetchRelatedPOI: Bool