When asking Nominatim for a County – in some cases you must have the word “County” while in others you must NOT have it (in order to get polygons)

For example in Nevada Counties

  1. “Washoe County” works
  2. “Washoe” – doesn’t work
  3. “Churchill county” doesn’t work
  4. “Churchill” works

.1. http://nominatim.openstreetmap.org/search.php?q=COUNTY_NAME%2CUnited%20States&addressdetails=1&limit=10&format=xml&polygon_text=1&email=MY_EMAIL&countrycodes=USA&bounded=1

Is it a known issue? Are there recommendations about how to request the data in a consistent way? Is there an open source code (preferably c#) that wrap these kind of calls and do the work-arounds?

=== Addition: ===

Is it possible that when searching for a name (w/o the "county" suffix or other pre/suffix) the results will include the the items with the suffix, and preferably ordered by higher to lower level (meaning New York will give New York state before New York city)

and from the other direction: If you have suffix - after results including the suffix - add results for same name w/o the suffix - for known words suce as State, Provice, County and so on

asked 14 May '13, 07:49

Dekel%20Israeli's gravatar image

Dekel Israeli
26113
accept rate: 0%

edited 16 May '13, 14:33

aseerel4c26's gravatar image

aseerel4c26 ♦
32.1k16239551


I'm not sure it is an issue as such. Nominatim is finding the place names that are mapped: Churchill and Washoe County. A workaround would have to handle knowing what admin levels mean and either removing or adding the extra word(s) (at the beginning or end as appropriate, in whatever language is determined relevant). Even admin_level 6 in USA alone isn't simple, being "Counties, parishes in Louisiana, boroughs in Alaska and also in New York City and the Independent cities (Virginia; Baltimore, MD; Carson City, NV; St. Louis, MO)".

The good news is that nominatim is already open source (but not C#) so if you can come up with a way that works I'm sure it would be welcomed.

permanent link

answered 14 May '13, 13:39

EdLoach's gravatar image

EdLoach ♦
18.1k14148263
accept rate: 23%

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
×74
×25
×19
×5

question asked: 14 May '13, 07:49

question was seen: 5,822 times

last updated: 16 May '13, 14:33

powered by OSQA