NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi. I'm very new in this map business and I need some guide on where should I start to get a railway distance between two points. I discovered OpenRailwayMap but I'm not sure how to use the API to get the distance info. Couldn't find any documentation about it.. Please help..

asked 24 Dec '18, 00:40

zarulzakuan's gravatar image

zarulzakuan
11112
accept rate: 0%

edited 24 Dec '18, 09:20

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


I don't know of any all-purpose API that gives you the "railway distance" between two points, not least because even more than with car traffic, the exact specifications of the rolling stock limit which tracks you can use. The "railway distance" for a TGV is very different from that for a diesel freight train.

It is likely that you need to run your own server providing railway routing according to the specifications of your use case. Some people have experimented with using standard automobile routing engines and simply feeding them tracks instead of roads, however this can lead to unrealistic results ("make a left turn at this intersection").

Michael Reichert held a talk on this at this year's SotM conference in Milan, in which he also presented an Open Source project (based on the GraphHopper routing engine) for railway routing:

https://2018.stateofthemap.org/slides/T071-Routing_on_rails_with_OpenStreetMap.pdf

permanent link

answered 24 Dec '18, 09:27

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×305
×68
×63

question asked: 24 Dec '18, 00:40

question was seen: 6,323 times

last updated: 24 Dec '18, 09:27

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum