i am implemented this https://github.com/PDF417/pdf417-ios github for qr code scanning . i am getting response like this example i scanned two tickets, i am getting two different response bellow
how can i pick the:
1.flight number, 2.seatNumber, 3.date of journey 4.origin and destination.
is any available for direct library for parsing in ios??
Thank you for advance
For an explanation of the format, see page 28 of the IATA barcode standard. I'm not aware of any existing libraries to parse this, but search on GitHub. It should not be difficult to parse yourself, given the format.
I can help decipher the string.
M1SOLLE/JOSUHUA EQHSLJX ATLMEMDL 0254 003Y28C 10C3JIJI7O4M28C
The origin, destination, and airline can be found in the 8-character string, "ATLMEMDL". In this case Atlanta to Memphis on Delta Airlines" The first three letters are the origin airport code, the next three are the destination airport code, the last two are the airline code.
Airline codes can be found here. Airport codes can be found here.
The next set of four digits is the flight number, "0254", or flight 254.
The next chunk begins with a 3-digit sequence number for the date (January 3), the ticket class ("Y") and seat ("28C").
Similarly, the second example decodes as follows:
M1DEY/CHIRANJIB MR EPAELYA CCUBOM9W 0628 225Y018B0029 100
I am not aware of an open source library for parsing this.=
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With