<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pingwi</title>
    <description>The latest articles on DEV Community by Pingwi (@pingwi_09fca3171abaf9065b).</description>
    <link>https://dev.to/pingwi_09fca3171abaf9065b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4074990%2F4363a68c-ee60-457c-968e-ca4ac86cf64c.png</url>
      <title>DEV Community: Pingwi</title>
      <link>https://dev.to/pingwi_09fca3171abaf9065b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pingwi_09fca3171abaf9065b"/>
    <language>en</language>
    <item>
      <title>Building an interactive map of sleeper trains 🚆</title>
      <dc:creator>Pingwi</dc:creator>
      <pubDate>Wed, 12 Aug 2026 15:02:53 +0000</pubDate>
      <link>https://dev.to/pingwi_09fca3171abaf9065b/building-an-interactive-map-of-sleeper-trains-377m</link>
      <guid>https://dev.to/pingwi_09fca3171abaf9065b/building-an-interactive-map-of-sleeper-trains-377m</guid>
      <description>&lt;p&gt;Night trains are having a bit of a comeback in Europe, but finding out where you can actually go by sleeper train is still surprisingly difficult.&lt;/p&gt;

&lt;p&gt;There are plenty of railway websites, timetables and booking platforms, but I wanted something much simpler:&lt;/p&gt;

&lt;p&gt;1) open a map&lt;br&gt;
2) click a station&lt;br&gt;
3) see the direct overnight trains from this station&lt;/p&gt;

&lt;p&gt;So I started building Sleeper Train Map, an interactive map showing sleeper and night train connections across Europe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pingwi.com" rel="noopener noreferrer"&gt;https://pingwi.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How it works&lt;/p&gt;

&lt;p&gt;The map displays overnight train routes and their stops. You can click a station and see the sleeper destinations available from there.&lt;/p&gt;

&lt;p&gt;For example, instead of searching separately for:&lt;/p&gt;

&lt;p&gt;Amsterdam → Vienna&lt;br&gt;
Amsterdam → Berlin&lt;br&gt;
Amsterdam → Zurich&lt;/p&gt;

&lt;p&gt;you can simply look at Amsterdam on the map and see the overnight connections from that point.&lt;/p&gt;

&lt;p&gt;The interesting part is the data&lt;/p&gt;

&lt;p&gt;The UI itself isn't particularly complicated. The difficult part is getting reliable railway data into a consistent format.&lt;/p&gt;

&lt;p&gt;The project currently combines data from sources such as GTFS feeds and open railway datasets. Different operators provide different levels of information, and night trains are especially tricky because a single service can cross several countries and sometimes split or join other services.&lt;/p&gt;

&lt;p&gt;I'm gradually working on making the data easier to maintain and expanding the coverage.&lt;/p&gt;

&lt;p&gt;Tech stack&lt;/p&gt;

&lt;p&gt;The project is built with:&lt;/p&gt;

&lt;p&gt;React&lt;br&gt;
Next.js&lt;br&gt;
TypeScript&lt;br&gt;
Leaflet&lt;br&gt;
GTFS data&lt;/p&gt;

&lt;p&gt;It's currently deployed on Vercel.&lt;/p&gt;

&lt;p&gt;I'm also experimenting with different ways of presenting the data, including ideas like "Where can I go tonight?", where the starting point is all you know.&lt;/p&gt;

&lt;p&gt;Why I'm sharing it here&lt;/p&gt;

&lt;p&gt;This started as a side project, but it has turned into an interesting combination of frontend development, data processing and railway research.&lt;/p&gt;

&lt;p&gt;I'd love to hear from other developers who have worked with GTFS, transit data, maps or OpenStreetMap.&lt;/p&gt;

&lt;p&gt;And if you're into trains, I'd especially like to know:&lt;/p&gt;

&lt;p&gt;What sleeper train route do you wish existed? 🚆&lt;/p&gt;

&lt;p&gt;The map is here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pingwi.com" rel="noopener noreferrer"&gt;https://pingwi.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sideprojects</category>
      <category>travel</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
