Extend Koleo for more operators (PL)

This partial rewrite allows supporting Koleo tickets with more operators (Koleo is a reseller, you can buy tickets to many operators, similar to bilkom)

There was an existing Koleo extractor but only worked for PKP, I merged old logic in and added a lot of more.

Current limitation:

  • It shows correct QR/Aztec/DataMatrix Code type only for operators I have seen, if I don't know, I blindly assume it's QR. (I hope this list will grow 😃)
  • For tickets I know itinerary can read is just bail out, whatever it reads it will be set.
  • Koleo doesn't add own footer or anything to distinguish them, so I just assume to run extractor based on their layout of text.

The extractor has been tested with:

  • 1x Polregio
  • 1x Koleje Dolnośląskie (I bail out as they use UIC Aztec)
  • 2x Koleje śląskie and Polregio on one ticket
  • 1x Koleje śląskie
  • 1x PKP IC
  • @vkrause I know you have one ticket with only PKP, can you check if it correctly works? 🙏
Edited by Grzegorz Mu

Merge request reports

Loading