---
title: "addRouteSegments(_:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpnavigationsession/addroutesegments(_:)"
---

# addRouteSegments(_:)

Use this method to add CPRouteSegments in chronological order to the navigation session. CPRouteSegment objects must be added as soon as they are available.

## Declaration

```swift
func addRouteSegments(_ routeSegments: [CPRouteSegment])
```
