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

Validate points in a path close to a bus stop

0

Hi guys I'm a newbie so excuse me if my question could sound stupid... I have paths stored. for each path I have point where a user stopped. I need to know if each of that stop point is close to a bus stop. But... they could be quite a lot, so I need to use a single call to overpass api to retreive that validation and I need to receive the validation sapareted for each point (to know which of them is validated and which is not...). I need halp please!!! cheers Gian Luca

asked 12 Jul '17, 09:58

boka70's gravatar image

boka70
11113
accept rate: 0%

edited 12 Jul '17, 10:02


One Answer:

1

There are some details missing in your question (for example how large the area is that your paths cover and so on), but ok: I would suggest loading your data in to a spatially enabled database (for example Postgresql with postgis), then querying the Overpass-api for all stops in the area (or extracting them from an OSM planet file, depending on how large the area is). Then you should import the stop nodes in to the database.

Once you've done all that (which includes figuring out the database schema you want to use etc), you can use spatial queries to find for example all of your user stop position that are within a pre-defined distance to a stop and so on.

answered 13 Jul '17, 09:49

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .