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.idthat can be obtained from theSearchEngineand theOfflineSearchEngine. Note that not all editions include theOfflineSearchEngine.Declaration
Swift
public var placeCategoryId: String -
The place ID to query an offline search to obtain additional data about this POI with the
OfflineSearchEngine. Note that not all editions include theOfflineSearchEngine.Declaration
Swift
public var offlineSearchId: String -
Creates a new instance.
Declaration
Swift
public init(name: String, coordinates: GeoCoordinates, placeCategoryId: String, offlineSearchId: String = "")