How to parse amadeus air ticket file

Posted by Andrus on Stack Overflow See other posts from Stack Overflow or by Andrus
Published on 2013-08-22T19:16:32Z Indexed on 2014/08/21 10:20 UTC
Read the original article Hit count: 1365

Filed under:
|
|
|
|

Amadeous produces AIR file like below for every flyight reservation. I need to read reservation number and source and destionation airports from this file.

I searched goog for "amadeous air format" but havent found format description. Wikipedia entry about EDIFACt is a bit different, it does not describe this content.

Where to fnd information about the file structure ? How to parse this file ? I have not idea about the file stucture, does it contain records like sql table or is it some reservation protocol instructions like postscript file ?

Application should work in Microsoft Windows and preferably in Visual FoxPro or C# language. FoxPro or Microsoft Visual Studio 2012 Express can used as programming environment

Google returns only Amadeus users guides and tutorials like in comment and in

http://www.amadeusschweiz.com/en/documentation/usermanuals.html

Those are user manuals. Most promising looks Amadeus Air user guide from this:

File which I received name was air.txt and first token in file is AIR-BLK206 Maybe BLK206 is some booking format descriptor. Google returns some documens like my using this so it looks like it is commonly used.

This file probably describes how to reserve ticket, which produces air.txt file.

I seacrched this and ticket user guide for BLK but those do not contains this abbreviation.

Commands in user manual look different than those from this file. How to use this information to extract reservation number and destination airport from this file ? I havent found format description using google. There are amadeus user guides, tutorials ja quick reference files similar which you posted but I do'nt understand how to use them to parse this file. One message describes that this is form of EDIFACT. However EDIFACT message sample in Wikipedia is also diffrerent. I need to create quick prototype to customer which shows that we vcan read those files. Maybe there are some programs which can used to display it in human readable form ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET