Hi all

I'm trying to get max speed information for a simple routing app I'm programming. I can do this using the nominatim reverse geocoding RESt-API. However, when I send a request to nominatim for a certain GPS point it can happen that at this point there are several roads and therefore several max speed informations valid. Think for example at a bride over a motorway. At the exact same GPS point on top of that bridge there are two valid roads. What I'd like to get as response is some kind of array of all valid roads (actually openstreetmap id's) and not just one. Does anybody know for some way how to achieve this?

Thanks a lot for your help and best regards, Patrick

asked 06 Aug '16, 06:00

wengerp's gravatar image

wengerp
11112
accept rate: 0%


Nominatim's /reverse endpoint will only return a single feature (e.g. road), setting &limit has no effect. The reverse search logic tries to exclude bridges, tunnels and other man-made features, it doesn't always work and roads can have several names (and/or reference numbers).

In https://github.com/twain47/Nominatim/issues/459 there's a pull request which might to in that direction (even after reading several times I'm not entirely sure what that developer is looking for). I've seen your request before, sometimes it's about roads, sometimes points-of-interest and that would need a new, let's say /nearby, endpoint. Currently Nominatim can't do that.

permanent link

answered 06 Aug '16, 14:14

mtmail's gravatar image

mtmail
2.7k646
accept rate: 26%

Nominatim is the wrong tool for querying specific information from OSM. Nominatim is a geocoder and designed to transform addresses into coordinates and coordinates back into addresses.

If you want to build a routing engine then better start working with offline data. If you still need to qeury for specific data then take a look at Overpass API and the overpass-turbo frontend. These tools are very powerful and a lot better suited for your task.

permanent link

answered 07 Aug '16, 10:03

scai's gravatar image

scai ♦
31.4k18285439
accept rate: 23%

Your answer
toggle preview

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:

×555
×238
×73
×46
×9

question asked: 06 Aug '16, 06:00

question was seen: 2,014 times

last updated: 07 Aug '16, 10:03

powered by OSQA