---
title: "init(airport:terminal:gate:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inairportgate/init(airport:terminal:gate:)"
---

# init(airport:terminal:gate:)

Creates a new gate object for a flight.

## Declaration

```swift
init(airport: INAirport, terminal: String?, gate: String?)
```

## Parameters

- `airport`: The airport from which a flight departs or arrives.
- `terminal`: The terminal from which a flight departs or arrives.
- `gate`: The gate identifier.

## Return Value

Return Value A new INAirportGate object or nil if one can’t be created.

## Discussion

Discussion You must create a new INAirportGate object for both the arrival and departure gates associated with a flight.
