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

Reverse geocoding specific street

0

Is there a way to reverse geocde an entire street? Essentially I would like to create a file with all lat/lng points for a specific street. For example is there a way to get all lat/lng values for Oxford Street in London? I have a large amount of location data and I would like to break it down into specific streets for analysis.

asked 04 Oct '17, 10:32

seesensemichael's gravatar image

seesensemichael
11224
accept rate: 0%


3 Answers:

2

This Overpass query will return all the lat/lng points defining the geometry of Oxford Street. Note though that there are other ways to use Overpass for your use case.

answered 04 Oct '17, 11:27

Hjart's gravatar image

Hjart
3.0k42656
accept rate: 18%

1

The reverse search logic starts at a position and then increases the search radius (circle) until it finds the first map feature (e.g. address). If you have Nominatim installed on your own server you could query the database for all addresses associated with the street, though often the street is split into multiple segments. Nominatim doesn't have an API for that.

You could check with https://github.com/pelias/interpolation, not sure if that library is used internally or if they offer it via an API.

answered 04 Oct '17, 11:08

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

0

Please remember that OSM data comes under the Open Database License. If you download road geometries and use them in your own database, then your own database in all likelihood becomes a derivative database (from OSM) and hence uses the ODbL license too. If you later "publicly use" results of your analyses, it is likely that you will have to share the contents of your derived database under the ODbL license. See the License and Legal FAQ for details.

answered 04 Oct '17, 13:03

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%