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 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/ [mailing list etiquette]

Articles from blogs I read

Status update, January 2024

Hi! This month has been pretty hectic due to the SourceHut network outage. We’ve all in the staff team invested a lot of time and energy to minimize the downtime as much as possible. Thankfully things have settled down now, there are still a lot of follow-up…

via emersion January 21, 2024

SourceHut network outage post-mortem

It’s been a busy couple of weeks here at SourceHut. At the time of writing, we have restored SourceHut to full service following an unprecedented 170 hour outage, and while we still have numerous kinks to sort out following an unscheduled emergency migration…

via Blogs on Sourcehut January 19, 2024

Dlaczego o tym się nie mówi? – recenzja książki Emilie Pine

Dziś polecajka – książka „O tym się nie mówi” Emilie Pine. Jest to lektura, która wzbudziła we mnie dużo emocji i wywarła na mnie bardzo dobre wrażenie. Eseje są napisane w nietuzinkowy i zaskakujący sposób oraz pomimo trudnych tematów, w lekkim stylu. Two…

via Powiedziała, co wiedziała January 4, 2024

Generated by openring