8 ms·
OpenRailwayMap
- niftich 9y agoThe OpenRailwayMap project is great; I just wish their default map viewer had the Query/Inspect feature. When I'm browsing railways (don't ask...), I find myself using OpenStreetMap side-by-side to Query for more details about a way or relation, while OpenRailwayMap gives me a better overview and labels in the main map.
- DoreenMichele 9y agoI know you said don't ask, but what do you use this for?
- niftich 9y agoEqual parts learning about the world [1][2][3] and armchair engineering [4][5]. [1] https://news.ycombinator.com/item?id=14989538#14991800 https://news.ycombinator.com/item?id=14989538#14991800 [2] https://news.ycombinator.com/item?id=14277421#14278793 https://news.ycombinator.com/item?id=14277421#14278793 [3] https://news.ycombinator.com/item?id=11996355#11997040 https://news.ycombinator.com/item?id=11996355#11997040 [4] https://news.ycombinator.com/item?id=13409082#13414587 https://news.ycombinator.com/item?id=13409082#13414587 [5] https://news.ycombinator.com/item?id=15683120#15684346 https://news.ycombinator.com/item?id=15683120#15684346
- deleted 9y ago[deleted]
- DoreenMichele 9y agoThanks.
- djsumdog 9y agoHave you used urbanrail.net? I love that site.
- femto 9y agoBackground: http://wiki.openstreetmap.org/wiki/OpenRailwayMap http://wiki.openstreetmap.org/wiki/OpenRailwayMap It seems to consist of a set of railway specialised tags, which exist within the OpenStreetMap database. OpenRailwayMap then runs their own tiling/rendering infrastructure to generate maps with a rail emphasis. If I understand correctly, there is no split here, as the OSM database remains the "mother lode" of mapping information?
- Freak_NL 9y agoYes, all this data is tagged and available in the OSM database. In many countries the tagging of the railway lines is very thorough and often uses publicly available data sources from the national railway infrastructure operator. http://wiki.openstreetmap.org/wiki/OpenRailwayMap http://wiki.openstreetmap.org/wiki/OpenRailwayMap
- rmc 9y agoCorrect there is only one OSM database feeding both this map and the main map on openstreetmap.org (and other maps). It shows the power of open data. You can take the OSM database, and slice out the bits you want and only show what you want.
- piquadrat 9y agoInteresting, I was wondering why the Rhaetian Railway was completely missing. Turns out it's tagged as "narrow gauge" railway[1], which doesn't seem to get picked up by OpenRailwayMap. [1] http://wiki.openstreetmap.org/wiki/Tag:railway%3Dnarrow_gauge http://wiki.openstreetmap.org/wiki/Tag:railway%3Dnarrow_gaug...
- n4r9 9y agoIt would be very cool if someone combined this with open GTFS data and a public transport routing algorithm. Imagine having a "public transport" option in the list of routing services - just like Google Maps - but using free software/data and on a global scale. It looks like Graphhopper introduced an algorithm for transport routing this year [0], although there are still performance improvements to be made. Project OSRM seems not to be interested in adding this feature for now. [0] https://github.com/graphhopper/graphhopper/pull/1018 https://github.com/graphhopper/graphhopper/pull/1018
- Stratoscope 9y agoWhat would make this super interesting to me would be a historical timeline and a way to contribute historical routes. For example, here are some old branches off the main San Francisco Peninsula line: • Hawthorne Avenue in Palo Alto (three blocks north of University) and Middlefield where it crosses San Francisquito Creek were originally a spur line that served the Catholic University (now Jesuit Seminary) in Menlo Park. • What is now Fry's Electronics in Palo Alto and that row of buildings had loading docks in the back for the spur that branched off the main line there. This line went to where the Veterans' Hospital is now and then followed the path of Foothill Blvd, straight through the Trader Joe's parking lot at Homestead ends, then continued through to tracks that still exist on the other side of 280. • If you ever wondered why Camden Avenue in Campbell/San Jose has that oddly smooth curve where it veers off Hillsdale, yes, it was another train line. This was the Campbell-Almaden line (thus the name cam-den) which started from the still-existing line that runs through Campbell (you can see some of the old loading docks from Railway Avenue). Where Camden bends right at Kooser, the train line continued straight through where the power lines are now, crossed a bridge to follow what is now Redmond Avenue in south San Jose, and on to the town of New Almaden.
- ucaetano 9y agoThis might interest you: https://drive.google.com/open?id=1AzVOviQ2o0fJQtwONbVHk7M3TBs&usp=sharing https://drive.google.com/open?id=1AzVOviQ2o0fJQtwONbVHk7M3TB...
- femto 9y agoJust what your ordered? http://www.openhistoricalmap.org/ http://www.openhistoricalmap.org/ http://wiki.openstreetmap.org/wiki/Open_Historical_Map http://wiki.openstreetmap.org/wiki/Open_Historical_Map Given that it is all based on the OSM database, I'd imagine OpenHistoricalMap would already cover historical railways? There is a renderer for the "railway" aspect of the OSM database (openrailwaymap.org), one for the "historic" aspect (openhistoricalmap.org), so it's a matter of programming for the railway map renderer to include the history aspect. --- Edit: Just notice the following note about OHM: "As opposed to other projects such as OpenSeaMap, OHM makes use of its own database independent of OSM." A pity, as this means ORM won't automatically pick up history. OSM does have a "4D" proposal to include time: http://wiki.openstreetmap.org/wiki/OSM-4D http://wiki.openstreetmap.org/wiki/OSM-4D , but it seems that it is not yet active.
- peterburkimsher 9y agoOpenRailwayMap shows the train lines on a geographic map. I drew a train map where the distance between stations is proportional to the time it takes to travel that far. http://peterburk.github.io/tra/ http://peterburk.github.io/tra/ To do the project, I rewrote my own version of Logo, and scraped the train timetable data from the train company's website. It was quite satisfying because Logo was my first programming language (when I was about 7 years old), and I finally found a use for it. To my knowledge, there's no other graphing tool that can draw maps like mine. Other subway maps don't have lines that are proportional to the time.
- exikyut 9y agoIt would be really cool if this were implemented for the whole world and not just Taiwan.
- peterburkimsher 9y agoIf you can tell me where to get train timetable information for Australia, I can try! I'll definitely be in Taiwan until the end of 2018. After that, I might be moving somewhere else (possibly New Zealand, Australia, or Canada). Depending on my future job's policies about side work, then I might be able to redraw a map like this one for wherever I'm living in future. Another possibility is to clean up my GUI, write a tutorial, and use it as a lesson plan for kids. I'd need to talk to some teachers first though.
- exikyut 9y agoAh, a well-researched answer. I'm genuinely curious how much digging was needed to find my location. It's not on page 1 of my profile, at least. (I like doing the same kind of digging... but then people are like "how did you find this old email address?!" and I can't win.) I actually wound up having a look through your blog after your comment on the SD card factory (https://news.ycombinator.com/item?id=15890198 https://news.ycombinator.com/item?id=15890198) which was super interesting as I'm VERY fascinated with chip design at the moment. Would love to see how the photolithography machines work... As for mapping data... [Clarifying disclaimer: the following wall of text conveys no imposition you have to actually do this nor expectation that you will. This wall of text just wants to be helpful. :P] Australia doesn't have a countrywide system; each state manages its own public transport infrastructure. I live in NSW (very possibly where you'd end up visiting if you came here looking for a job, as a FWIW aside), and this state happens to provide full info through https://opendata.transport.nsw.gov.au/ https://opendata.transport.nsw.gov.au/. This portal is... to be honest: on the one hand, it's an utterly confusing mess you could very reasonably and accurately sell as a technical IQ test, it's structured so confusingly. On the other hand, if you succeed at getting an OAuth2 key and figuring out the right URL to poke, it'll spit back little ~20-40KB protobuf-compressed blob files containing the live GPS coordinates for every train, bus, tram and ferry in NSW. And on top of that there's stuff like route shape information, realtime timetable data, etc. So, figuring the site out will be a multi-day project of its own. As far as I can figure out, you basically need a list of stops and the locations. Methinks the GTFS Static feed for stop information may be a workable start: https://opendata.transport.nsw.gov.au/node/334/exploreapi https://opendata.transport.nsw.gov.au/node/334/exploreapi To get this, I a) logged in, b) made an app (just enable all the APIs), c) went to the above page, left "type" as the default "API key", hit "expand", scrolled down to the "try it!" button, opened the network tab in the devtools, clicked the "try it" button, right-clicked the in-flight download, went to "copy" > "copy as curl", reloaded the page to stop the download, then just ran the curl command. Yep, a giant hack, but it worked. The site's basically broken, but it works.™ The result was a 100MB ZIP file (remember to add "-o gtfs.zip" or something to the curl command) with a bunch of CSV text files in it that conform to this format: https://developers.google.com/transit/gtfs/examples/gtfs-feed https://developers.google.com/transit/gtfs/examples/gtfs-fee... The above URL may be helpful for basic familiarization but I had a look at the data from the standpoint of "how would I turn this into a proportionally accurate map". stops.txt has all the train stations buried in it. I particularly like that each platform at a station is listed separately, each with its own (ever so slightly different) GPS coordinate :D This is the second approach to look at everything that occurred to me, but I've kept the first one below. Each station is noted in stops.txt both as an actual station as well as a series of platforms. (I'm guessing the GPS coordinates in the station reference are for the actual building.) The actual station entry IDs seem to all start with PST (the IDs are allowed to be random FWIW). The platform entries are listed as "___ Station, Platform _" and have a numeric ID, and you'll see the PST___ identifier in the "parent" column off toward the right. If you grab the ID for a station platform, you'll find a ton of references to the ID in stop_times.txt, which represent a train stopping at the platform as part of a route. This is useful because of the "shape_dist_traveled" column, which records how far the train traveled as part of the route it happens to be on. If you crossreference all the platforms against all the routes in stop_times.txt, you'll be able to derive the distance between each stop by just looking at the route as it travels between stations. -- This was where I started: the routes are structured by startpoint and an endpoint. If you ^F for "Train" inside routes.txt to find a train route and grab the ID, and you'll find a ton of matches for that ID inside shapes.txt. This describes every single little twist and turn in the track as a discrete GPS coordinate. You may find it fun to feed this to your Logo implementation - but you don't _have_ to, thanks to the "dist_traveled" column (which is not a standard GDFS column but got added here). Searching trips.txt for the same ID will yield a ton of matches that represent all the stations associated with a particular route. (The GPS locations for the station platforms are of course back in stops.txt.) Each route is distinguished by a unique ID which explains the extra characters. I don't think there's a pattern to these. -- I unfortunately don't know whether the ___dist_measured columns measure the distance in feet, miles, meters, kilometers, or what. It might be meters. You could probably derive it from a pair of GPS positions (I have no idea how to). I don't mind seeing if I can figure out the distance information between the stops. It sounds like a fun project, in theory... :P
- pcurve 9y agoRed means high speed and it's sad to see almost no high speed in the u.s. sigh The one from NY to Boston shouldn't even be called "high speed", if anyone has ridden in one before. It's actually slower than driving!
- microcolonel 9y agoMake a proper argument for high speed rail. I think it's rare in the U.S. in part because it's not an idea which is popular with people who need to get around and move things. High speed rail is popular with government, since it's an attractive sophisticated infrastructure program, but (perhaps TGV aside) I don't think any high speed rail service could be considered a success in any real way.
- eggsome 9y agoGermany's ICE trains? https://en.wikipedia.org/wiki/Intercity-Express https://en.wikipedia.org/wiki/Intercity-Express Or the Shinkansen: https://en.wikipedia.org/wiki/Shinkansen https://en.wikipedia.org/wiki/Shinkansen (a major cultural touchstone for Japan in additon to the economic aspects).
- jandrese 9y agoThey are a success in that people ride them regularly. Less of a success in that the tickets are often more expensive than a comparable flight, although secondary factors like security, terminal location, and legroom can make the train the preferable option even at a higher price.
- herbst 9y agoTrain rides <= 3 hours are also often faster than the related flight when you account for airports usually beeing more far out of the city and all the time you waste within the airport. Also if you connect 2 cities without major airport (which would lead to having to change plane) i found this rule to be true for 7+ hours train rides as well.
- djsumdog 9y ago
- elsurudo 9y agoCool! It would be awesome to see the trains moving in real-time (even if it wasn't "live", and just based on posted schedules).
- gpvos 9y agoNetherlands, based on live data: http://spoorkaart.mwnn.nl/ http://spoorkaart.mwnn.nl/ . It exists for some other European countries too, I think.
- gpvos 9y agoClick on the "Spoorkaarten in het buitenland" link in the bottom right for more countries.
- SM_SEG 9y agohttp://tracker.geops.ch/ http://tracker.geops.ch/ Where the data is available, it shows live movements of the trains, and where that data is not available, the trains follow scheduled movements. A further explanation of this is here: http://geops.de/blog/worldwide-travic http://geops.de/blog/worldwide-travic (German)
- sleavey 9y agoI love this site. In the UK there are so many old railways no longer in existence that you can find on this site. It's really interesting to see how old tunnels and paths near where you live used to be used.
- alex_duf 9y agoIs there a site to print maps from OSM? I'd love to print a map of London's train system (an happy to pay for it)
- maxerickson 9y agoThere are lots of options: http://wiki.openstreetmap.org/wiki/OSM_on_Paper http://wiki.openstreetmap.org/wiki/OSM_on_Paper I haven't used any of them so I don't have anything resembling a recommendation. You could try asking on https://lists.openstreetmap.org/listinfo/talk-gb https://lists.openstreetmap.org/listinfo/talk-gb , the community there is pretty active so someone might have a suggestion for a nicely done map.
- sjg 9y agoI make a lot of maps in my spare time and have access to a large scale printer. Give me a ping in the next few days and I'll see what I can do for you.
- mrcactu5 9y agoI"m surprised at how few trains there are in Africa.
- amai 9y agoRelated: https://en.wikipedia.org/wiki/Longest_train_services https://en.wikipedia.org/wiki/Longest_train_services