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 777Airbus A319ATR 42 |
flightNumber(digits: Int = 4) |
418062475200 |
seat() |
20A54A8D |
recordLocator() |
GOUIWDUJDCJVEGICEJ |
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.