Class

CPNavigationSession

An object representing an active route guidance session.

Declaration

@interface CPNavigationSession : NSObject

Overview

To begin a navigation session, call startNavigationSessionForTrip: on the map template. This returns the active navigation session that you use to:

  • Set upcoming maneuvers.

  • Update travel estimates.

  • Pause, cancel, or finish a trip.

Topics

Getting the Trip

trip

The trip associated with the navigation session.

Managing Upcoming Maneuvers

upcomingManeuvers

The next set of maneuvers the user should perform while following the current route.

Updating Travel Estimates

- updateTravelEstimates:forManeuver:

Updates the travel estimates for the specified maneuver.

CPTravelEstimates

An object that describes the time and distance remaining for a maneuver in a navigation session.

Managing Trip Navigation

- cancelTrip

Tells the navigation session to cancel the trip.

- finishTrip

Tells the navigation session to finish the trip.

- pauseTripForReason:description:

Tells the navigation session to pause the trip for the specified reason.

CPTripPauseReason

A set of reasons for pausing a trip.

Relationships

Inherits From

See Also

Route Guidance

CPTrip

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

CPManeuver

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