POIID

public struct POIID

Defines the POI identifier required to fetch POI details

Important

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

Lifecycle

  • Initializes POIID from the search result identifier

    Throws

    throws an error if it’s not possible to instantiate POIID

    Note

    to be used when you have access to the search results

    Declaration

    Swift

    public init(from searchResultId: SearchResultId) throws

    Parameters

    searchResultId

    result identifier produced by the search service

  • Initializes POIID structure

    Declaration

    Swift

    public init(id: String, source: Source)

    Parameters

    id

    an identifier of the POI for the given map

    source

    identifies the type of the search service used to retrieve POI identifier

Public

  • id

    Identifier for the POI

    Declaration

    Swift

    public let id: String
  • Identifies the type of the search service that produced POI identifier Note: Source should be used as a requirement for the type of service to get the POI details

    Declaration

    Swift

    public let source: Source