Contents

init(origin:destination:routeChoices:)

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

Declaration

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

Parameters

  • origin:

    The trip’s origin.

  • destination:

    The trip’s destination.

  • routeChoices:

    Up to three route choices available for the trip.

Return Value

A newly initialized trip.

See Also

Creating a Trip