init(provider:boatName:boatNumber:tripDuration:departureBoatTerminalLocation:arrivalBoatTerminalLocation:)
Creates a boat trip with the specified contents and attributes.
Declaration
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
A new INBoatTrip object or nil if the initializer can’t create one.