PickedPlace

public struct PickedPlace : Hashable

Carries the result of picking a Carto POI (point of interest) object.

  • The name of the POI localized in the currently selected map language.

    Declaration

    Swift

    public var name: String
  • The geographic coordinates of the POI.

    Declaration

    Swift

    public var coordinates: GeoCoordinates
  • The place category ID of the POI. This is the same String value as PlaceCategory.id that can be obtained from the SearchEngine and the OfflineSearchEngine. Note that not all editions include the OfflineSearchEngine.

    Declaration

    Swift

    public var placeCategoryId: String
  • Creates a new instance.

    Declaration

    Swift

    public init(name: String, coordinates: GeoCoordinates, placeCategoryId: String)