NavigationGeocodedPlacemark
public struct NavigationGeocodedPlacemark : Equatable, Codable
Struct, which represents result of a geocoding request, and contains additional navigation related information like title, address, location and routable locations.
-
The placemark’s title.
Declaration
Swift
public var title: String
-
The placemark’s address.
Declaration
Swift
public var address: String?
-
The placemark’s geographic center.
Declaration
Swift
public var location: CLLocation?
-
An array of locations that serve as hints for navigating to the placemark.
For the placemark’s geographic center, use the
location
property. The routable locations may differ from the geographic center. For example, if a house’s driveway leads to a street other than the nearest street (by straight-line distance), then this property may contain the location where the driveway meets the street. A route to the placemark’s geographic center may be impassable, but a route to the routable location would end on the correct street with access to the house.Declaration
Swift
public var routableLocations: [CLLocation]?
-
Initializes a newly created
NavigationGeocodedPlacemark
object with aGeocodedPlacemark
instance and an optional subtitle.Declaration
Swift
public init(from geocodedPlacemark: GeocodedPlacemark, subtitle: String?)
Parameters
geocodedPlacemark
A
GeocodedPlacemark
instance, properties of which will be used inNavigationGeocodedPlacemark
.subtitle
Subtitle, which can contain additional information regarding placemark (e.g. address).
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public static func == (lhs: NavigationGeocodedPlacemark, rhs: NavigationGeocodedPlacemark) -> Bool
-
Method, which returns
CPListItem
, which can be later used in list of search results insideCPListTemplate
.CPListItem
shows destination’s title and its address.Declaration
Swift
@available(iOS 12.0, *) public func listItem() -> CPListItem
Return Value
A
CPListItem
instance.