Encoding and decoding

 

Part 1 Encoding and decoding cities and airports

ACTION CODE

HYPHEN

LETTERS "CC"

CITY NAME

W/

-

CC

PERTH

Shown above is the entry used for encoding a city name. The purpose of this entry is to find the three-letter code for a specified city. If the city is served by more than one airport, then the airport codes will also be displayed.

The entry begins with the action code W/, followed by a hyphen, the letters CC for "city code" and the name of the city you wish to encode.

In application, the entry shown above would determine the three-letter codes for all cities named Perth and display this information on your screen.

ACTION CODE

HYPHEN

LETTERS "AP"

AIRPORT NAME

W/

-

AP

GATWICK

The above entry is a variation to the entry shown on the last frame. This entry is used to find the three-letter code for an airport.

While the previous entry would display a generic city code as well as possibly many airports, this entry would retrieve a specific airport code, along with the city and country (or state) that the airport is found in.

The entry consists of the action code W/, followed by a hyphen, the letters AP for "airport" and the name of the airport you wish to encode.

In application, the above entry would display the three-letter codes for all airports named Gatwick.

ACTION CODE

ASTERISK

CITY OR AIRPORT CODE

W/

*

GEG

Shown above is an entry to decode a city or airport code. The purpose of this entry is to find the city or airport associated with the specified three-letter code.

The entry consists of the action code W/, followed by an asterisk and the three-letter code.

In application, the entry shown above would return a display telling you that the code GEG is both the city and airport code for Spokane, Washington.

 

Part 2 Encoding and decoding airlines

ACTION CODE

HYPHEN

LETTERS "AL"

AIRLINE NAME

W/

-

AL

SOUTHWEST

In the previous section, you learnt how to encode and decode cities and airports. Recall that encoding is when you turn a name into a code. Decoding is when you turn a code into a name.

Shown above is the entry to encode an airline name. The purpose of the entry is to find the two-character airline code corresponding to the specified airline name.

The entry begins with the action code W/, which is followed by a hyphen, the letters AL for "airline" and the name of the airline.

In application, the entry above would look up the two-character code for Southwest.

ACTION CODE

HYPHEN

LETTERS "AL"

AIRLINE NAME

W/

-

AL

SOUTHWEST

Note the similarity between this entry and the entry to encode a city or airport name. The only differences are that the letters AL are used instead of CC or AP and an airline name is specified instead of a city or airport name.

Encoding and decoding airlines 

ACTION CODE

ASTERISK

AIRLINE CODE

W/

*

AC

Shown above is the entry to decode an airline code. The purpose of the entry is to look up the name corresponding to the specified two-character airline code.

Note the similarity of this entry to the entry used to decode a city or airport code. The only difference is that an airline code is used instead of a city or airport code.

In application, the entry above would look up the name for the airline with the code AC

 

Part 3 Encoding and decoding cars

ACTION CODE

HYPHEN

LETTERS "CR"

CAR VENDOR NAME

W/

-

CR

HERTZ

Shown above is the entry to encode a car vendor name. The purpose of the entry is to find the two-letter vendor code corresponding to the specified car hire firm name.

The entry begins with the action code W/, which is followed by a hyphen, the letters CR and the name of the car vendor.

In application, the entry above would look up the two-letter code for Hertz.

ACTION CODE

HYPHEN

LETTERS "CR"

CAR VENDOR NAME

W/

-

CR

HERTZ

Note the similarity between this entry and the previous encode entries you have learnt. The only differences are that the letters CR are used, and a car vendor name is specified.

ACTION CODE

LETTERS "CR"

ASTERISK

CAR VENDOR CODE

W/

CR

*

ZD

Shown above is the entry to decode a car vendor code. The purpose of the entry is to look up the name corresponding to the specified two-letter car vendor code.

Note that the format of this entry is slightly different than the formats you learnt previously to decode a city/airport code and airline code. The difference is that the letters CR for "car" have been inserted between the action code W/ and the asterisk.

In application, the entry above would look up the name for the hire firm with the code ZD

Part 4 Encoding and decoding hotels

ACTION CODE

HYPHEN

LETTERS "HL"

HOTEL CHAIN

W/

-

HL

HYATT

Shown above is the entry to encode a hotel. The purpose of the entry is to find the two-letter hotel chain code corresponding to the specified hotel name.

The entry begins with the action code W/, which is followed by a hyphen, the letters HL for "hotel" and the name of the hotel chain.

In application, the entry above would look up the two-letter code for Hyatt hotels.

Once again, note the similarity between this entry and the entries that you have been practising. The only differences are that the letters HL are used and a hotel name is specified.

ACTION CODE

LETTERS "HL"

ASTERISK

CHAIN CODE

W/

HL

*

HI

Shown above is the entry to decode a hotel chain code. The purpose of the entry is to look up the name corresponding to the specified two-letter hotel chain code.

Note that the format of this entry is slightly different than the formats you learnt previously to decode a city/airport code and airline code.

The entry begins with the action code W/, followed by HL, an asterisk and the two-letter hotel chain code.

In application, the entry above would look up the name of the hotel chain with the code HI

 

 

Part 5 Encoding and decoding aircraft equipment

ACTION CODE

LETTERS "EQ"

HYPHEN

EQUIPMENT NAME

W/

EQ

-

BOEING

Shown above is the entry to encode aircraft equipment. The purpose of the entry is to find the code corresponding to the specified aircraft name.

The entry begins with the action code W/, which is followed by the letters EQ for "equipment", a hyphen and the name of the aircraft.

In application, the entry above would look up the equipment code for Boeing.

ACTION CODE

LETTERS "EQ"

HYPHEN

EQUIPMENT NAME

W/

EQ

-

BOEING

Please take note of a difference in format in this entry as opposed to the entries you learnt previously. In this entry, the hyphen follows the identifying letters.

ACTION CODE

LETTERS "EQ"

ASTERISK

EQUIPMENT CODE

W/

EQ

*

M80

Shown above is the entry to decode an aircraft equipment code. The purpose of the entry is to look up the name corresponding to the specified aircraft equipment code.

Note the similarity of this entry to the car and hotel decode entries.

The entry begins with the action code W/, followed by EQ, an asterisk and the aircraft equipment code.

In application, the entry above would look up the name of the aircraft equipment with the code M80

 

Part 6: Encoding and decoding states and countries

"HCC"

STATE NAME

HCC

ARIZONA

Shown above is the entry to encode a US state. The purpose of this entry is to retrieve a state's two-letter code by entering the full name of the state.

The entry begins with the letters HCC, which are followed by the name of a state.

In application, the entry shown above would return the two-letter code for Arizona.

 

"HCC"

STATE CODE

HCC

MI

This entry may also be used to decode a two-letter state code. In this case, the entry is used to find out the full name of the state which corresponds to the specified two-letter code.

The entry begins with the letters HCC, which are followed by a two-letter state code.

In application, the entry shown above would return the name of the state with the code MI

Post a Comment

0 Comments