NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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.

permanent link

answered 04 Oct '17, 11:27

Hjart's gravatar image

Hjart
3.0k42656
accept rate: 18%

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.

permanent link

answered 04 Oct '17, 11:08

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

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.

permanent link

answered 04 Oct '17, 13:03

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×85
×33

question asked: 04 Oct '17, 10:32

question was seen: 2,477 times

last updated: 04 Oct '17, 13:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum