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

Given a lat lon, is it possible to find the closest highway/street record?

0
1

Is is possible to find the nearest highway record given a lon lat?

I suppose I could pass the current map bounds, but in some cases it might be that the nearest street is not in view.

Is this possible, and how could I do this? (without downloading and hosting the data myself)

Thanks Sam

asked 21 Jun '13, 15:42

sambomartin's gravatar image

sambomartin
11112
accept rate: 0%

1

See there: resolving-latitudelongitude-to-the-closest-osm-node (but not restricted to external tools).

That similar question might help too: how-do-i-find-the-nearest-cities-to-a-point-using-latitude-and-longitude-in-nominatim. Well, in fact that might be the answer to your question - maybe you just need to adjust the query. Be sure to respect the usage policy of any external service you use (no over-use).

(22 Jun '13, 01:32) aseerel4c26 ♦

Source code available on GitHub .