Skip to main content
AUSTRIAN SERBIAN TOURISM PROGRAMMESAUSTRIAN SERBIAN TOURISM PROGRAMMES
Conversion Functions
AUSTRIAN SERBIAN TOURISM PROGRAMMES
CONVERSION
FUNCTIONS
Chapter 3
At the end of this chapter, you will be able to:
 Define encoding and decoding
 Encode cities, airports, countries, states and airlines
 Make time calculations
 Make date calculations
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding and Decoding
 The airline industry uses a system that identifies each
city, airport, country, state or airline by a unique code
– Codes are administered by the International Air Transport
Association (IATA), and the International Standards
Organisation (ISO)
– With these codes, you can identify
cities, airports, countries, states and airlines quicly and
efficiently
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Cities
 Note that many cities have the same name, but are located in
different countries, e.g. Paris (France, USA)
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Airports
 Many major cities have more than one airport
– e.g. New York has 8 airports
– each airport has its own three-letter code
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encode & Decode
• Amadeus provides you with the
ability to encode and decode:
– Airline codes and names
– Airport and city codes and
names
– State and country codes and
names
– Aircraft equipment codes and
names
– Hotel and car rental companies
• Encode means to convert a full
name to its code
• Decode means to convert a
code to its full name
Three-letter code: Cities, and airports
Two-letter code:
Countries, airlines, hotels, and rent-a-cars
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encode & Decode (cont.)
 Amadeus also provides you with a calculator allowing
you to make:
– Mathematical calculations
– Time calculations
– Date calculations
– Metric conversions
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding City and Airports Names
 To display three-letter codes for a city or airport, enter: DAN PARIS
 Explanation of the system response:
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding City and Airports Names (cont.)
 Explanation of the system response:
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Additional Entries
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Decoding City or Airport Codes
 To display the name for a three-character city or airport
code, enter: DAC SFO
Note: The asterist (*) next to SFO shows that SFO is a city code served by more than
one airport and SFO is also the code of one of the airports.
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding and Decoding Country Name
 To display two-letter code for a country name: DC JAPAN
 To display a country name for a two-letter code, enter: DC JP
The following table describes the components of the system response:
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding and Decoding States and Provinces
 To encode a state or province, enter: DNS TEXAS
 To decode a state, enter: DNS US CA
 To list all states for a specific country, enter: DNS US
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Exercises
 Display the list of all states for Canada (CA)
 Display the city code for Belgrade
 Display the airport code for Heathrow
 Display the country code for South Africa
 Display the full name for the city code: LIM
 List all states for Australia (AU)
 Display the city code for Johannesburg
 Display the full name for the city code: NCE
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Airports
 Display the list of airports for a specific city:
DB CHI
(DB CHICAGO)
 Exercises:
– Find code for New York
– Display the list of airports for New York
– How many airports does Belgrade have?
– How many international airports does Vienna have?
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding and Decoding Airlines
 To display two-character code for an airline name, or airline
name from two-character code, enter:
DNA IBERIA
or
DNA IB
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Exercises
 Display the two-letter code for JAT Airways
 Which ariline company has the code: TK?
 What is the code for Montenegro Airlines?
 What is the code for Qantas – Australia’s largest airline?
 Which airline company has the code: AF?
 Display code for Adria Airways
 Display code for Delta Airlines
 Encode LH
 Encode KQ
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding and Decoding Aircraft Type
 To display equipment names for three-letter equipment
codes, enter: DNE AB3
 To display the three-letter code for an aircraft type, enter:
DNE AIRBUS
 Exercises:
– Display the aircraft type for 752
Type of engine
Number of
seats
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Encoding and Decoding hotel and car
rental companies
FOR HOTELS:
 To display the two-letter hotel company code: DNH HOLIDAY
INN
 To display a hotel name from the code: DNH SI
FOR RENT-A-CARS:
 To display the two-letter code for a car rental company, enter:
DNC HERTZ
 To display the name of the rent-a-car company from the
code, enter: DNC ZI
AUSTRIAN SERBIAN TOURISM PROGRAMMES
CALCULATOR
 Convert Dates
– Which day of the week is 28AUG13? DD28AUG13
– The guest will stay 14 days starting from 30may13.
What date is it? DD30MAY/14
– The guest leaves on 30may13, but he came 7 days
ago. At what date he arrived? DD30MAY/-7
– The guest stayed from 25sep till 13oct. How many
days did he stay in the hotel? DD25SEP/13OCT
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Additional Date Calculations
Note: Help about Convert Dates can be found on HE DD
AUSTRIAN SERBIAN TOURISM PROGRAMMES
Time Display
 If it is 18.00 in Belgrade, what time is it in Los
Angeles?
 What is the time difference between Belgrade and
Tokyo?
 What is the time difference between London and
Bangkok?
 If client travels from Frankfurt to Guangzhou, what is
the time difference?