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

What am I doing wrong here?

curl 'http://nominatim.openstreetmap.org/?q=Wokingham,%20Berkshire,%20England&format=json'

gives the empty response

[]

asked 26 May '17, 13:44

nigelhorne's gravatar image

nigelhorne
11112
accept rate: 0%


Nominatim does not calculate a relationship between Wokingham and Berkshire.

I don't know why that is but I think it must be the problem with http://nominatim.openstreetmap.org/?q=Wokingham,England&format=json returning the reasonable result.

permanent link

answered 26 May '17, 16:45

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Thanks for your reply. Wokingham is in Berkshire, so it should work.

(26 May '17, 17:25) nigelhorne

Berkshire no longer exists, and is certainly no longer a standard part of a postal address. Its possible that the ceremonial county of Berkshire (which does still have some role) has not been added to OSM, or that Nominatim does not use such information. Similar problems exist for places such as Hayes (Middlesex) and Kingston (Surrey). It is not clear that OSM can support older geographies such as these. Most countries tend to keep admin & address geographies aligned, but not the UK.

(26 May '17, 20:41) SK53 ♦

The ceremonial county is present: http://nominatim.openstreetmap.org/?q=Berkshire,England&format=json

So that fills out the answer, Nominatim is not including the ceremonial county in the address hierarchy (and any query parsed as looking for 'children' of Berkshire will return 0 results).

(26 May '17, 20:59) maxerickson

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:

×28
×3

question asked: 26 May '17, 13:44

question was seen: 3,013 times

last updated: 26 May '17, 21:00

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