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

How to find shortest path between two points using overpass-turbo query?

0

Hello, I'm using overpass-turbo to download GeoJSON files. I'm trying to find (shortest) way between two points, but I don't know anything about query and can't really find how to learn to use that query. So I'm having two points with their names, how do I download all lines that connect them, making the path shorter than certain distance? Two points are really far away from each other, so I can't download all the roads and then load them into QGIS...

asked 19 Apr '20, 15:27

izili's gravatar image

izili
11112
accept rate: 0%


One Answer:

1

You probably want to use a routing software. You might be able to implement a crude one on top of overpass, but that would be complicated.

There is a lot of online routing services based on OSM, and some provide an API.

For reference, the Overpass doc. Quite a lot to read, but as I said, it's probably not the best option.

Regards.

answered 19 Apr '20, 20:10

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

Source code available on GitHub .