Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i get pdf 417 boarding pass qr code details with decoding?

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

  1. M1SOLLE/JOSUHUA EQHSLJX ATLMEMDL 0254 003Y28C 10C3JIJI7O4M28C,
  2. M1DEY/CHIRANJIB MR EPAELYA CCUBOM9W 0628 225Y018B0029 100.

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

like image 314
Pramod Reddy Avatar asked Apr 20 '18 13:04

Pramod Reddy


2 Answers

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.

like image 146
Mike Taverne Avatar answered Sep 23 '22 03:09

Mike Taverne


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

  • Origin: (CCU) Netaji Subhash Chandra Bose International Airport
  • Destination: (BOM) Chatrapati Shivaji International Airport
  • Airline: (9W) Jet Airways (India)
  • Date: (225) August 13
  • Flight: 628
  • Seat: 18B

I am not aware of an open source library for parsing this.=

like image 30
picciano Avatar answered Sep 22 '22 03:09

picciano