I'm planning a long railway journey, and I wonder what the distance (to be) travelled is for a a particular route. Is there any website where I can find this out, for example, based on stations included with HAFAS and on HAFAS-recommended routes? For example, a journey from Berlin (Germany) to Inta (Russia) takes about three days and passes through Germany, Poland, Belarus, and Russia.

  • As far as Russia is concerned, most train routes have public data for the distance traveled by rail. For instance, if your plan is to take a train from Moscow to Inta directly, you will need to travel 2014 kilometers by rail. Since neither Google nor Yandex seem to "know" how to get to Inta by rail, I'm not sure there's a more automated option to calculate the optimal route. That said, I doubt you could do much better than taking a direct train. – undercat Dec 30 '18 at 18:22

It's unclear to me where the data is being sourced from or how accurate it is, but Rome2Rio appears to have distances for each invididual segment. For your example, it shows Berlin-Moscow as 1152 miles, and Moscow-Inta as 1230 miles, with a couple miles of subway across Moscow and a bit of walking as well.

From https://www.rome2rio.com/map/Berlin/Inta, click on the "Night train, train" option, then expand each segment.

Screenshot for Berlin-Moscow


For Dutch railways, the Dutch language Wikipedia has a page for each railway; and each such page has a track map, including distances. Note that these pages are organize by railways; a typical trainroute will travel over sections of one or more railways. So you may have to do some work to find the distance between two particular stations.

The Dutch language Wikipedia site also lists German railways with distances, and so does the German language Wikipedia, but I don't know whether they have covered all the German railways. They also may cover some railways outside of the Netherlands/Germany, and so may other Wikipedia sites, but I have not checked.

  • Useful, but rather labour-intensive. I'd have hoped that someone might have developed a distance calculation from A to B, perhaps based on combining routes recommended by travel planners with distances derived from Openstreetmap data... – gerrit Dec 28 '18 at 17:29

For trains connecting to and from Russia, there is route information on tutu.travel. For example, Route 018Б Nice → Moskva reveals that the distance travelled from Nice to Moscow is 2958 km (and passing through eight countries).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.