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

find best road based on geolocation

0

Hello i want to tell user that restaurant is about to come in 200-500 m please slow down.For implementing this my thought was:

  1. Map all resturant to some point on some road?(Assuming this is done)
  2. Find on which road using is traveling based on geolocation?

Now for second i need to find way to determine the road based on geolocation.Also i think i need to know the direction of road to determine road.

please suggest how can i achieve this.

After determining road and point on road , direction of road, i need a way to find the resturants point which are in the forward direction of the road.

Please suggest how can i do this using postgis and osm data

asked 26 Apr '18, 11:49

two10's gravatar image

two10
11112
accept rate: 0%

Source code available on GitHub .