Better Mazovian Railways ticket service 11 November 2022 on Krystian's Keep

During my studies at Warsaw University of Technology I used Mazovian Railways to go home and back to Warsaw. For a long time I’ve used the ticket machines to buy train tickets. The problem was that, due to the frequent departures, there was often a queue to use the machine. Turthermore, the ticket machine was often slow, sometimes even to the point of timing out. Then I tried buying tickets olnine through the Mazovian Railways website. It was horrible. You have to enter your personal details twice and check multiple checkboxes after scrolling through nested popups. It takes an unacceptably long time to buy tickets this way.

That’s why I made mazowieckie, live at km.krystianch.com. It’s simpler than the official store and it loads way faster in slow network conditions (like in a train!) and on lower-end devices. It’s not spying on you unlike the official one, which uses Piwik/Matomo to gather information like the size of your viewport and track your actions. It persists the connection you choose and your personal details in your browser’s cookies so that you don’t have to enter them manually again. There are also simplified descriptions of discounts because the original ones are difficult to understand. My inspiration for this project was this blogpost.

Screenshot showing a search form and departure times of trains

Connection search form

Screenshot showing a personal details form

Personal details form

This service uses the internal HTTP API to purchase tickets. I use it with my partner every time we travel by Mazovian Railways. Tickets bought through this service were verified many times by ticket controllers.

Have a comment on one of my posts? Start a discussion in my public inbox by sending an email to ~krystianch/public-inbox@lists.sr.ht [mailing list etiquette]

Articles from blogs I read

What's cooking on SourceHut? Q4 2025

Hi everyone! We hope you’re reading today’s update under as many blankets as possible, ideally in front of a warm fireplace, as the cold of winter starts to set in. You may have read our last update in the third quarter – it’s time again to take a look at wh…

via Blogs on Sourcehut November 20, 2025

Status update, November 2025

Hi! This month a lot of new features have added to the Goguma mobile IRC client. Hubert Hirtz has implemented drafts so that unsent text gets saved and network disconnections don’t disrupt users typing a message. He also enabled replying to one’s own messages…

via emersion November 16, 2025

OpenAI employees… are you okay?

You might have seen an article making the rounds this week, about a young man who ended his life after ChatGPT encouraged him to do so. The chat logs are really upsetting. Someone two degrees removed from me took their life a few weeks ago. A close friend rel…

via Drew DeVault's blog November 8, 2025

Generated by openring