NavigationGeocodedPlacemark
public struct NavigationGeocodedPlacemark : Equatable, Codable
A struct that represents the result of a geocoding request, containing information for display to the user and locations for navigation.
-
The placemark’s title.
Declaration
Swift
public var title: String
-
The placemark’s subtitle, such as its formatted address.
Declaration
Swift
public var subtitle: 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]?
-
Creates a geocoded placemark with the given titles and locations.
Declaration
Swift
public init(title: String, subtitle: String?, location: CLLocation?, routableLocations: [CLLocation]?)
Parameters
title
The title of the placemark.
subtitle
A subtitle with additional information about the placemark, such as its formatted address.
location
The location of the placemark.
routableLocations
The locations to which the user should travel to arrive at the placemark.
-
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 subtitle.Declaration
Swift
public func listItem() -> CPListItem
Return Value
A
CPListItem
instance.