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

I'm conducting some tests against nominatim.openstreetmap.org, looking at reverse geocoding. Based upon my observations I have two questions:

1) Given that I'm looking at data generated from a vehicle, this request and response are unexpected:

http://nominatim.openstreetmap.org/reverse?lat=52.50676&lon=-1.99523&addressdetails=1&format=json&zoom=18

{"place_id":"9146383198","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright","osm_type":"way","osm_id":"60694393","lat":"52.506753","lon":"-1.9943365","display_name":"CLOSED for 60 weeks from Sep 2013, Londonderry, Warley, Sandwell, West Midlands, England, B70 6AS, United Kingdom","address":{"footway":"CLOSED for 60 weeks from Sep 2013","neighbourhood":"Londonderry","suburb":"Warley","city":"Sandwell","county":"West Midlands","state_district":"West Midlands","state":"England","postcode":"B70 6AS","country":"United Kingdom","country_code":"gb"}}

It seems that I need Nominatim to ignore ways with highway=footway - can I achieve this?

2) Can I ask for a reverse geocoded response to include other tag values? I have been able to find the maxspeed tag value by requesting an api lookup following the reverse geocode request, for example:

http://api.openstreetmap.org/api/0.6/way/144176050

This is ok but it would be far better if I could obtain the information from a single reverse geocode call as it seems reasonable to expect to be able to obtain other tag values from Nominatim. Is this possible? I note the Extra Tags shown from the Nominatim data here: http://nominatim.openstreetmap.org/details.php?place_id=9146205970

If these things are not possible then I wonder if I could better achieve it I had my own Nominatim instance? I'm prepared to get into the Nominatim coding and make changes if necessary (but obviously need to consider the impact of the change and ensure it avoids any behavioural change for other contributors).

Thanks for any advice.

Note I also asked this question here: http://stackoverflow.com/questions/20331620/how-can-i-change-nominatims-reverse-geocoding-behaviour

asked 02 Dec '13, 16:18

Elliveny's gravatar image

Elliveny
66447
accept rate: 0%

edited 02 Dec '13, 16:20


Neither of these two problems can be solved with the current API. However, solutions are fairly easy to implement and would be a welcome addition to the API. If you know a bit of PHP and like to get your hands dirty, they are a good place to start contributing to Nominatim. For a more in-depth discussion on how to best proceed, join the geocoding mailinglist or #osm-nominatim on IRC.

permanent link

answered 03 Dec '13, 09:14

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

if that way was named correctly (or not named at all). You would have gotten a better hit from a nearby source. I fixed that bad tagging for you in OSM in 5min. It will disappear eventually from nominatim too.

permanent link

answered 28 Dec '13, 02:25

gplv2's gravatar image

gplv2
1
accept rate: 0%

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
×85
×46

question asked: 02 Dec '13, 16:18

question was seen: 7,708 times

last updated: 28 Dec '13, 02:25

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