Show HN: The Official National Train Map Sucked, So I Made My Own
60 points
8 hours ago
| 10 comments
| bdzmap.com
| HN
Hi HN,

I’m a junior developer. I wanted to share a side project I’ve been working on.

The national railway carrier (BDZ) has no public API. They have an official map but the UI is quite dated, often lags, and doesn't show the full route context.

I wrote a short write-up about the process here: https://www.pavlinbg.com/posts/bg-train-tracker

I know it's still rough around the edges (I'm still working on it), but I’d love to hear your feedback or suggestions!

NaOH
6 hours ago
[-]
BDZ is Balgarski Darzhavni Zheleznitsi, Bulgaria's national railway.
reply
HelloUsername
6 hours ago
[-]
Thank you; would be nice if the country would be clear from the post title
reply
woodruffw
53 minutes ago
[-]
Nice job! I took the train from Sofia to Plovdiv a few months ago, and this would have been a great resource to have.

(I wish someone would make a similar thing for Amtrak, which has a route/progress tracker that only marginally works IME.)

reply
rafram
35 minutes ago
[-]
reply
yoan9224
2 hours ago
[-]
Really polished UI. The real-time train positions are a nice touch.

One UX issue on desktop: the train detail panel being fixed to the bottom feels awkward. Consider making it a floating panel or sidebar that doesn't block the map.

Also the arrival/departure times showing "hundreds of minutes" is confusing. Anything over 90 minutes should probably display as hours:minutes instead.

Great work overall though. I've seen plenty of official government transit sites that look worse than this.

reply
trinix912
2 hours ago
[-]
> Also the arrival/departure times showing "hundreds of minutes" is confusing. Anything over 90 minutes should probably display as hours:minutes instead.

Would help with usability but overall seeing this is pretty normal in my part of Europe. I've seen 200+ min delays, written just like that, many times.

reply
hopelite
1 hour ago
[-]
Is there any point of using cumulative minutes rather than standard time format that I may not be considering?

Is that something that should be improved? Or is that just a “we’ve always done it that way but no one knows why, so we are going to just keep doing it that way” thing?

reply
Incipient
4 hours ago
[-]
Well done! The UI feels incredibly polished. Without really digging into the detail at I'm on mobile, at a glance you've done a great job.
reply
executive
2 hours ago
[-]
- trains all look to be arriving/departing in hundreds of minutes when you click a random station, even near active trains. Assuming a bug. Regardless, consider changing this to hour/minute display if over 60|90m

- train icon looks like standard metro icon but is easily mistaken for a bus

- train detail panel fixed to bottom is awkward on desktop breakpoints. consider floating or integrating to a single sidebar

- consider having main sidebar fixed to bottom for mobile breakpoints

reply
delitrem
1 hour ago
[-]
Great resource, many thanks for sharing. I've bookmarked it and will keep an eye on its development. Wish you good luck with it! (Not a Bulgarian, but live in your country for several years and really felt in love with it!)
reply
markus_zhang
7 hours ago
[-]
Thanks. I wish we had a map with freight trains too. I have always been a railroad fan and my favourite trains are those long freight trains. I also love watching the operations of marshalling stations too!
reply
jazzyjackson
3 hours ago
[-]
In case you haven't stumbled upon it

https://www.openrailwaymap.org/

I used it recently to find a land and sea route from Southampton to Marrakesh, along with Google maps faint representation of ferry lines, Google doesn't have public transit directions for the trains in Morocco shrug

reply
6510
1 hour ago
[-]
- The tool-tip feels wrong in how it covers up the highlighted route. Perhaps it should go at the left top of the screen.

- When opening the page the user should be prompted to pick the language and theme. Then you can collapse it in the interface under a settings icon. (put the icon to the left of the close button)

- Push "Train dashboard" all the way to the top. (next to the settings and close icons)

- Make the close button smaller.

- "Search trains" should sit as close to the top as possible.

- Lines around forms and buttons are visible when you look at them directly but are to faint for peripheral vision.

reply
gostsamo
4 hours ago
[-]
Congrats, it is heartwarming seeing the young doing their own things. :)

PS: Only BG comprehensible joke - be careful with showing BDZ looking bad, they might hide the data MVR style.

reply
NooneAtAll3
2 hours ago
[-]
no zoom buttons :(
reply