Giter VIP home page Giter VIP logo

deutschlandticket_parser's Introduction

Disclaimer

This is all the result of reverse engineering or finding information on the internet. If you find mistakes or want to add information, a PR would be appreciated.

What it does

Parses the QR code data of a Deutschlandticket. It is only a dumb parser so far. It doesn't do any signature verification or further processing. Feel free to add this functionality with a pull request.

How to use

I recommend Binary Eye for the first two steps.

  1. Scan your Deutschlandticket QR code, e.g., by making a screenshot and scanning it with a QR code scanner capable of doing so from an image file.
  2. Store the data in a file called 'qr.bin'
  3. Copy this file into the main directory of this repository
  4. Execute python3 main.py

Technical details

The Deutschlandticket QR code is distributed as a VDV-barcode defined in the VDV-Kernapplikation (VDV-KA). See: https://docplayer.org/61642532-Spezifikation-statischer-berechtigungen-fuer-2d-barcode-tickets.html Section 4.3

The Deutsche Bahn (DB) usually uses the UIC standard for their distribution of tickets. However, they start to integrate the VDV-KA standard as well, e.g., for Schönes-Wochenende-Ticket, Quer-Durchs-Land-Ticket, Länder-Tickets, City-Ticket, and City-mobil. And apparently now for the Deutschlandticket as well. See Interoperabilität Barcode DB Online-Ticket VDV-KA for more information about the compatibility between the UIC and the VDV-KA standard. In a nutshell, they use the same QR code representation (Aztec 2D-barcode), but after scanning the ticket it needs to be processed differently.

deutschlandticket_parser's People

Contributors

akorb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.