I've set up my own instance of Nominatim. Trying to to create a reverse geocoding query for the closest road/street to a coordinate but not sure how to. I've used the "around" query when using the OSM API but unable to do so on my own instance of Nominatim.

asked 22 Feb, 08:15

hellu's gravatar image

hellu
16225
accept rate: 0%


Use /reverse which on our machine might be /nominatim/reverse or /nominatim/reverse.php and set the lat and lon parameters. Setting zoom to 16 will skip building and return streets. http://nominatim.org/release-docs/latest/api/Reverse/

permanent link

answered 22 Feb, 11:39

mtmail's gravatar image

mtmail
2.8k847
accept rate: 27%

will try that thank you!

(27 Feb, 03:02) hellu

a follow up, im only looking for highway of type 'roads' and 'link roads' but this returns me 'pedestrian'. can I specify highway type?

(27 Feb, 04:08) hellu
1

highway=roads "If you do know the road type, do not use this value, instead use one of the more specific highway=* values." https://wiki.openstreetmap.org/wiki/Key:highway Nominatim doesn't have tag filters in the reverse search. In the forwards search it would also only be able to filter one road type, not many.

(27 Feb, 10:51) mtmail

If you only care about specific highway tags, just filter out everything else before loading the data in to nominatim.

(27 Feb, 16:46) alester
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:

×558
×73
×11

question asked: 22 Feb, 08:15

question was seen: 994 times

last updated: 27 Feb, 16:46

powered by OSQA