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

Hello, I have spotted this. As far as I know admin_level is a country level, not for cities...

berlin

https://nominatim.openstreetmap.org/ui/details.html?osmtype=N&osmid=240109189&class=place&tags=

Is this correct?

asked 20 Oct '21, 17:52

pdsellers's gravatar image

pdsellers
41114
accept rate: 0%


From the wiki for admin_level:

In addition to the direct usage of this tag with the keys above, the numeric values used by admin_level=* are also used for tags:

capital=*

heritage=*

So I assume the editor that added that meant to indicate that it is the capital of an admin_level=2 area.

permanent link

answered 20 Oct '21, 19:18

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

edited 20 Oct '21, 19:18

Yes https://www.openstreetmap.org/node/240109189 needs to be capital=2, not capital=yes + admin_level=2. Has to be careful when doing this on place= and boundary=administrative.

(21 Oct '21, 14:50) Kovoschiz

@kovoschiz The page for capital=* says that capital=yes is for a country and that yes is substituted for the admin_level values for capitals for regions within a country, so I think a value of yes implies 2?

(23 Oct '21, 14:02) InsertUser
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:

×10

question asked: 20 Oct '21, 17:52

question was seen: 799 times

last updated: 23 Oct '21, 14:02

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