need some help with airport codes database

Discussion in 'Web Design & Coding' started by daraptor, Jan 19, 2007.

  1. daraptor

    daraptor OSNN Junior Addict

    Messages:
    12
    hey guyz...i think this is off topic but am tryin to design a site for airfares and i need all airport codes mdb file....i would appreciate if anyone can help me out with this....plz help guyz....i need it very badly.......thanks....
     
  2. hansrijf

    hansrijf sh! it stinks Folding Team

    Messages:
    277
    Location:
    Amsterdam, The Netherlands
    Last edited: Jan 19, 2007
  3. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    hansrijf: those links seem to require login

    http://en.wikipedia.org/wiki/List_of_airports_by_IATA_code will give them to you by first letter, it might take you some time but its probably a reasonably complete list.


    Even a start of a database for you :p
    Code:
    CREATE TABLE airport_codes (
      iata CHAR (3) PRIMARY KEY NOT NULL,
      icao CHAR (4) UNIQUE,
      name VARCHAR (255) NOT NULL,
      city VARCHAR (255),
      locality VARCHAR (255),
      country CHAR (2) NOT NULL
    );
    
    ---         IATA   ICAO    Airport name                       City        Locality            Country
    INSERT INTO airport_codes ("iata", "icao", "name", "city", "locality", "country")
        VALUES ('AAA', 'KAAA', 'Logan County Airport',            'Lincoln',  'Illinois',         'US');
    INSERT INTO airport_codes ("iata", "icao", "name", "city", "locality", "country")
        VALUES ('AAA', 'NTGA', 'Anaa Airport',                    'Anaa',     'Tuamotu Island',   'PF');
    INSERT INTO airport_codes ("iata", "icao", "name", "city", "locality", "country")
        VALUES ('AAB', 'YARY', 'Arrabury Airport',                'Arrabury', 'Queensland',       'AU');
    INSERT INTO airport_codes ("iata", "icao", "name", "city", "locality", "country")
        VALUES ('AAC', 'HEAR', 'El Arish International Airport',  'El Arish', '',                 'EG');
    INSERT INTO airport_codes ("iata", "icao", "name", "city", "locality", "country")
        VALUES ('AAD', ''    , 'Ad-Dabbah Airport',               'Ad-Dabbah', '',                'SD');
    INSERT INTO airport_codes ("iata", "icao", "name", "city", "locality", "country")
        VALUES ('AAE', 'DABB', 'Rabah Bitat Airport (Les Salines Airport)', 'Annaba', '',         'DZ');
     
    Last edited: Jan 19, 2007