I'm new to OSM and am using it to perform a GPS coordinates to Address Query. A few of the queries come back incorrect which I would like to fix, the physical location on the map looks correct in the editor, but the query result is not. How do I bring up the place ID for editing which I guess is where I need to look for the incorrect data? The place_id is 102283291 which is returned after a GPS query at a hospital site in New Zealand. The Hospital name is correct, but most of the address is incorrect which I'd like to edit.

asked 19 Aug '20, 00:27

sheppy99's gravatar image

sheppy99
11113
accept rate: 0%

edited 19 Aug '20, 00:27


It appears that you have stumbled on a bug in Nominatim; the address of that hospital seems to have some random bits in it that make no sense. I have reported that to the Nominatim admin asking to look into it.

Generally speaking:

Sometimes an object in OSM has an explicit address (i.e. we record "this object has this housenumber, this street, this postal code, this city"). This is described here: https://wiki.openstreetmap.org/wiki/Proposed_features/House_numbers/Karlsruhe_Schema. If such tags are wrong they can simply be corrected on the object itself.

More often than not, and this is also the case here, at least some parts of an address will be inferred - e.g. the post code from a post code boundary, the city name from a city boundary and so on. In these cases, if that data is wrong, it is good good to fix the incorrect polygons as they will apply to more than just that one object.

A place_id is always specific to one particular instance of the Nominatim geocoder. Your place id comes from OSM's Nominatim instance: https://nominatim.openstreetmap.org/ui/details.html?place_id=102283291 and you can see how the address is constructed there. It starts with "North Island" because there apparently was pedestrian area by that name encompassing the hospital; this seems to be an issue with Nominatim since there isn't (any longer) a "pedestrian area" tag on NZ's North Island. Probably this was a glitch in the data that has been fixed in the data a while ago and Nominatim hasn't updated. From this initial problem follow a couple other mis-assignments that make little sense. But normally, in a non-buggy scenario, you would find in this list a proper hierarchy going from the suburb or city quarter up to the country.

permanent link

answered 19 Aug '20, 09:16

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
77.5k886901200
accept rate: 24%

edited 19 Aug '20, 09:16

1

Fixed in the Nominatim database. Unfortunately I slightly overdid it and removed the hospital as well. What was the name of the hospital again?

(19 Aug '20, 09:51) lonvia

Thanks very much for the insight. From casual observation of a few malformed address lookups that have long since left the logs I'd guess there are a few of these in that suburb. After I wrote the initial reply I see that the bug has been fixed - thanks! Currently https://wiki.openstreetmap.org/wiki/Proposed_features/House_numbers/Karlsruhe_Schema. takes me to an empty page, and https://nominatim.openstreetmap.org/ui/details.html?place_id=102283291 returns Error fetching results from /details.php?place_id=102283291&addressdetails=1&hierarchy=0&group_hierarchy=1&polygon_geojson=1&format=json Is that correct?

permanent link

answered 19 Aug '20, 23:38

sheppy99's gravatar image

sheppy99
11113
accept rate: 0%

edited 19 Aug '20, 23:43

@lonvia It was 'North Shore Hospital'

(19 Aug '20, 23:41) sheppy99
1

As said above, I accidentally deleted the hospital from the Nominatim database which is why you got the error. Now reinstated: https://nominatim.openstreetmap.org/ui/details.html?osmtype=W&osmid=58379525

(20 Aug '20, 07:53) lonvia

Thanks very much, its working now

(20 Aug '20, 21:43) sheppy99
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:

×43
×1

question asked: 19 Aug '20, 00:27

question was seen: 474 times

last updated: 20 Aug '20, 23:15

powered by OSQA