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

I'm trying to get a residential road using the reversegeocoding with nominatim. This is what I have constructed

https://nominatim.openstreetmap.org/reverse.php?format=html&lat=47.5&lon=-122&zoom=16&highway=residential

but the road returned is not residential, instead it's classified as "highway:track" how can I get the closest residential road when given gps coordinates?

asked 03 Aug '18, 14:27

Dave4784's gravatar image

Dave4784
16445
accept rate: 0%


Nominatim can't do it. It understands a couple of special phrases https://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases for points-of-interest type searches, but not road types. https://wiki.openstreetmap.org/wiki/Overpass_API might work for your use case.

permanent link

answered 06 Aug '18, 11:24

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

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:

×689
×235
×144
×85
×8

question asked: 03 Aug '18, 14:27

question was seen: 2,255 times

last updated: 06 Aug '18, 11:24

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