Contents

CPTrip

An object that represents a journey between an origin and a destination.

Declaration

class CPTrip

Overview

A trip represents a journey consisting of an origin, a destination, and up to three route choices. Use CPRouteChoice to define each possible route choice.

You create trips after the user has selected a destination, and present up to twelve trip previews by calling showTripPreviews(_:textConfiguration:) on the map template.

You provide estimates for each trip using the map template’s updateEstimates(_:for:) method, and must update these estimates if the remaining time or distance changes.

Topics

Creating a Trip

Getting the Trip’s Origin and Destination

Getting Route Choices

Providing Additional Information

Initializers

Instance Properties

See Also

Getting the Trip