---
title: "init(provider:boatName:boatNumber:tripDuration:departureBoatTerminalLocation:arrivalBoatTerminalLocation:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inboattrip/init(provider:boatname:boatnumber:tripduration:departureboatterminallocation:arrivalboatterminallocation:)"
---

# init(provider:boatName:boatNumber:tripDuration:departureBoatTerminalLocation:arrivalBoatTerminalLocation:)

Creates a boat trip with the specified contents and attributes.

## Declaration

```swift
init(provider: String?, boatName: String?, boatNumber: String?, tripDuration: INDateComponentsRange, departureBoatTerminalLocation: CLPlacemark, arrivalBoatTerminalLocation: CLPlacemark)
```

## Parameters

- `provider`: The operator of the boat line.
- `boatName`: The name of the boat.
- `boatNumber`: The boat’s number.
- `tripDuration`: The timespan of the boat trip from departure to arrival.
- `departureBoatTerminalLocation`: The terminal where the boat trip starts.
- `arrivalBoatTerminalLocation`: The terminal where the boat trip ends.

## Return Value

Return Value A new INBoatTrip object or nil if the initializer can’t create one.
