Class

CPTrip

A journey consisting of an origin, a destination, and route choices.

Declaration

class CPTrip : NSObject

Topics

Creating a Trip

init(origin: MKMapItem, destination: MKMapItem, routeChoices: [CPRouteChoice])

Creates a trip with an origin, destination, and route choices.

Getting the Trip's Origin and Destination

var origin: MKMapItem

The trip's origin.

var destination: MKMapItem

The trip's destination.

Getting Route Choices

var routeChoices: [CPRouteChoice]

The list of route choices for the trip.

class CPRouteChoice

A possible route for a trip.

Providing Additional Information

var userInfo: Any?

An object containing custom information associated with the trip.

Relationships

Inherits From

See Also

Route Guidance

class CPNavigationSession

An object representing an active route guidance session.

class CPManeuver

A maneuver containing navigation instructions and distance from the previous maneuver.