This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to measure railway segments?

0

Hello, I am looking for a way how to get data for many railway stations like number of tracks and its lengths (measured between switches).

I can manually find each switch in the map and measure distance between them and see the precision is enough for me. Can this process be automated?

I know how to calculate distance between coordinates, so If I can fetch coordinates of all switches and which are directly connected by railroad, I know how to do the rest.

Do you have ideas how to do this things? Thank you.

asked 16 Feb '23, 18:11

Honza%20Pobo%C5%99il's gravatar image

Honza Pobořil
11112
accept rate: 0%

Source code available on GitHub .