Skip to content

Generators

airline

Airports, aircraft, flight numbers, seats, record locators.

var faker = Faker(seed: 1337, locale: DecoyLocaleEN.locale)
faker.airline.airline()
Method Example output
airline() ["iataCode": "CX", "name": "Cathay Pacific"]
["iataCode": "AS", "name": "Alaska Airlines"]
["iataCode": "EK", "name": "Emirates"]
airport() ["iataCode": "ABF", "name": "Abaiang Airport"]
["iataCode": "GRQ", "name": "Eelde Airport"]
["iataCode": "LIX", "name": "Likoma Island Airport"]
airplane() ["iataTypeCode": "777", "name": "Boeing 777"]
["iataTypeCode": "350", "name": "Airbus A350"]
["iataTypeCode": "787", "name": "Boeing 787"]
aircraftType() Boeing 777
Airbus A319
ATR 42
flightNumber(digits: Int = 4) 4180
6247
5200
seat() 20A
54A
8D
recordLocator() GOUIWD
UJDCJV
EGICEJ

Examples are real output from three different seeds, captured when this page was built, using each method’s default arguments. Where a signature shows parameters, pass your own to change the size, gender, length or format.