Key:capital

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Key:capital
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português português do Brasil română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް
Public-images-osm logo.svg capital
Europe capitals map.png
Description
The capital of a country or administrative divisions within countries
Group: Places
Used on these elements
may be used on nodesshould not be used on waysmay be used on areasshould not be used on relations
Useful combination
See also
Wikidata
Status: de factoPage for proposal

This property is used on place=city/town (and other place=* of type settlement) to tag the capital of a country or administrative divisions within countries.

How to map

Rendering

  • Mapnik: Place-capital-8.svg

Using relations for capitals

relation Relations of type=boundary+boundary=administrative include the role admin_centre. The role members can used to get the capitals of countries (admin_level=2 on relation) and other capitals depending admin_level=* on relation.

The following Overpass API query (link) gets all national admin_centres of the world:

relation["admin_level"="2"]["type"="boundary"]["boundary"="administrative"];
node(r:"admin_centre");
out meta;

The following Overpass API query (link) gets all admin_level=4 admin_centres of Germany. The country and admin_level can be adjusted.

{{geocodeArea:Germany}}->.searchArea;
relation["admin_level"="4"]["type"="boundary"]["boundary"="administrative"];
node(r:"admin_centre");
node._(area.searchArea);
out meta;

As of 2016 the admin_centre role can't be used in databases created by osm2pgsql: We do not have this information in the database. osm2pgsql does not have membership information and nodes as relation members do not make it into geometries.[1]

Capitals which are not tagged as city or town

Not all country capitals fit into the definition of place=city/town because of size or of definition. Below a list of country capitals which are currently tagged differently. Please join discussion on Talk page about tagging.

With a population around 5500 it does reach the minimum required population of town which is usually applied in surrounding Germany, Switzerland and Austria. Vaduz as the capital and seat of government is the most important settlement in Liechtenstein, though. An upgrade to town leaves the question how to tag Schaan, the slighter larger settlement nearby.
This settlement consists only of a government building complex without permanent population.
The whole atoll is designated the capital.
The question whether South Tarawa or the whole atoll Tarawa is the capital is still debated on Wikipedia. South Tarawa is historically a string of islets with a few villages on them. They have been connected by a causeway, forming a single piece of land.

See Also