Jump to content

Help:Tagging: Difference between revisions

From OpenGeofiction
m heading levels were messed up
Airports: unique codes
 
(35 intermediate revisions by 4 users not shown)
Line 1: Line 1:
In terms of tag usage (keys and values), OGF attempts to stick to the standards and best practices as extensively documented on the [[http://wiki.openstreetmap.org/wiki/Main_Page OSM wiki]]. Below, however we discuss some aspects of tagging that provide additional clarification for use in OpenGeofiction.
In terms of '''tag usage''' (keys and values), [[OpenGeofiction:About|OpenGeofiction]] attempts to stick to the standards and best practices as extensively documented on the {{OSMW|Main_Page|OpenStreetMap wiki}}. Users are encouraged to consult the wiki for the most up-to-date tagging practices and to understand how things render on the map. There are extensive discussions of {{OSMW|Map_Features|map features}} and {{OSMW|How_to_map_a|how to map various elements}}.


The tagging is documented in the OpenStreetMap-Wiki, see [http://wiki.openstreetmap.org/wiki/Map_Features English]|[http://wiki.openstreetmap.org/wiki/DE:Map_Features German]|[http://wiki.openstreetmap.org/wiki/FR:Map_Features French], this German [http://wiki.openstreetmap.org/wiki/DE:How_to_map_a How to map a ...] page is very useful, too.
OpenGeofiction uses some custom tagging, however, as a means of administrating the site and for further world-building. Below, we discuss some aspects of tagging that provide additional clarification for use in OpenGeofiction.


== Special OGF tags ==
==Country-specific Tagging==
OpenGeoFiction represents physical features on the ground [https://wiki.openstreetmap.org/wiki/Map_Features using standard OSM tags] attached to its basic data structures: nodes, ways and relations.
Even on OpenStreetMap, there are varying standards for how things such as administrative boundaries, highways, and railroads are mapped depending on region or individual country. Similarly, different territories on OpenGeofiction also feature different definitions for what is rendered. For example, a way tagged <code>highway=tertiary</code> in one territory may have very different attributes from one in another. Here are a collection of tags and how they are defined by the mappers of various territories.
However, in some cases, OGF might use its own tags to make situations more clear or to simplify maintenance.
These tags are listed here.


=== Confirmed by the admin team ===
* ''[[Help:Tagging/admin_level|admin_level]]''
*To assign territory information (only relation)
* ''[[Help:Tagging/highway|highway]]''
:'''"type" = "boundary" + "boundary" = "administrative" + "ogf:id" = ''VALUE'''''
* ''[[Help:Tagging/place|place]]''
 
==Special OGF tags==
Unlike OpenStreetMap, OpenGeoFiction does not represent a real, physical world; the needs of the site are different. Thus, OpenGeofiction features a collection of additional site-exclusive tags to help facilitate the site's administration and to help users with collaborative world-building. Please note that these tags are ''extensions'' of OpenStreetMap tagging and are ''only designed to be used on OpenGeofiction''.
 
Please note that the tags <code>is_in:continent=*</code> and <code>ogf:id=*</code> '''must''' be included on every territory relation for administrative purposes. Do not remove or change the values of these tags without first having [[OpenGeofiction:Admin team|admin]] approval.
 
===Territory information===
{| class="wikitable unsortable" style="background: #f9f9ff;"
|-
! colspan="2" | Key and tag values
! Comment
! Map type and page
|-
! style="background: #ddeeff;" | {{OSMW|Key:driving_side|<code>key:driving_side</code>}}
| <code>driving_side=*</code>
| May be added to the territory relation or individual highways to highlight the territory's primary driving side. Permissible parameters:
*Left
*Mixed
*Right
| [[Index:Driving side]]
|-
! rowspan="4" style="background: #ddeeff;" | <code>key:economy</code>
| <code>economy=*</code>
| Parameters are defined here as numerical values. If your territory does not fit cleanly into a specific model, please use one of the multiples of ten for generic or broad definitions.
*20 (Traditional economy, broadly or generically speaking)
*21 (Barter economy)
*22 (Subsistence economy)
*23 (Other currency-less economy)
*30 (Planned economy, broadly or generically speaking)
*31 (Decentralized planned economy)
*32 (Corporatist planned economy)
*33 (Distributist planned economy)
*34 (Participatory planned economy/akin to "Dutch 'polder' model")
*35 (Command planned economy, e.g. "Soviet model")
*40 (Market economy, broadly or generically speaking)
*41 (''Laissez-faire'' or free-market capitalist economy)
*42 (Corporate capitalist market economy)
*44 (Mercantilism)
*45 (Socialist market economy)
*46 (Market feudal economy)
*50 (Mixed economy, broadly or generically speaking)
*51 (Mixed-market economy, e.g. "American model")
*52 (Social market economy, e.g. "Rhenish model")
*53 (Welfare capitalist economy, e.g. "Nordic model")
*54 (State-driven investment economy, e.g. "East Asian model")
*55 (Dirigist economy, e.g. "French model")
*56 (Mixed feudal economy)
*60 (Religious economy, broadly or generically speaking)
*90 (Other economic systems)
| rowspan="4" | [[Index:World economics]]
|-
| <code>economy:gdp=*</code>
| Only use numerical values with no comma separation and decimals offset by a period instead of a comma. Do not include currency symbols. Assume all are in a common international banking standard that is similar to measuring GDP in USD in the real-world.
|-
| <code>economy:hdi=*</code>
| Any numerical value between 0 and 1 is permissible.
|-
| <code>economy:note=*</code>
| Custom description that may be used to describe elements of the economic ideology but is limited to 64 characters.
|-
! style="background: #ddeeff;" | {{OSMW|Key:gauge|<code>key:gauge</code>}}
| <code>gauge=*</code>
| Although OSM only uses it to tag individual rail lines, it may be added to the territory relation on OGF to highlight national standards. Values that map are presently limited to 1000, 1067, 1435, 1520, 1600, 1668, 1676, and other. Additional values may be added later should demand warrant.
| [[Index:Rail transport]]
|-
! rowspan="2" style="background: #ddeeff;" | <code>key:governance</code><ref>Not to be confused with {{OSMW|key:government|the government key in use for other things}}.</ref>
| <code>governance=*</code>
| Parameters are defined here as numerical values. If your territory does not fit cleanly into a specific model, please use one of the multiples of ten for generic or broad definitions.
*20 (Direct democracy, broadly defined)
*21 (Full presidential democracy)
*22 (Semi-presidential or dual-elective democracy)
*30 (Republic, broadly defined)
*31 (Full presidential democratic republic)
*32 (Semi-presidential republic)
*33 (Parliamentary republic with largely ceremonial head-of-state)
*34 (Parliamentary republic with dependent presidency)
*35 (Religious republic)
*36 (Merchant republic)
*40 (Monarchy or autocracy, broadly defined)
*41 (Parliamentary constitutional monarchies with strong monarch)
*43 (Parliamentary constitutional monarchies with weak or ceremonial monarch)
*45 (Religious autocracy such as bishoprics, caliphates, etc.)
*46 (Diumvirate or triumvirate)
*49 (Dictatorship)
*50 (Aristocracy, broadly defined)
*53 (Parliamentary aristocracy)
*55 (Theocratic rule)
*56 (Feudal aristocracy)
*57 (Oligarchy)
*58 (One-party state)
*59 (Military junta)
*60 (Tribal confederation, broadly defined)
*61 (Chiefdom)
*90 (Other or undefined)
| rowspan="2" | [[Index:Government]]
|-
| <code>governance:structure=*</code>
| Parameters defined as <code>decentralized</code>, <code>federation</code>, and <code>unitary</code>.
|-
! rowspan="3" style="background: #ddeeff;" | <code>key:history</code>
| <code>history:established=*</code>
| Year of establishment, founding, or independence. Must be strictly a single numerical value without symbols or other text.
| rowspan="3" | [[Index:World history]]
|-
| <code>history:independence_from=*</code>
| List territory from whom it gained independence.
|-
| <code>history:revolution=*</code>
| Year of current governance structure, whether it be by new constitution or revolution.
|-
! style="background: #ddeeff;" | {{OSMW|Key:is_in|<code>key:is_in</code>}}
| <code>is_in:continent=*</code>
| Permissible parameters: Antarephia, Beginner, East Uletha, Ereva, Kartumia, North Archanta, Orano, Pelanesia, South Archanta, Tarephia, West Uletha. '''Please do not remove or alter.'''
| Various administrative pages
|-
! rowspan="3" style="background: #ddeeff;" | {{OSMW|Key:language|<code>key:language</code>}}<ref>OSM does not use the key <code>language</code> for countries or territories, as it is often with the parameter of what language is used in an institution as subkey (<code>language:es=yes</code>). Other subkeys exist on OSM: inscription, physician, teaching, worship. Our use of language here is to provide additional data about language usage within an administrative division.</ref>
| <code>language:official=*</code>
| Can be used for multiple languages separated by semicolon.
| rowspan="3" | [[Index:Languages]]
|-
| <code>language:regional=*</code>
| Can be used for multiple languages separated by semicolon.
|-
| <code>language:minority=*</code>
| Can be used for multiple languages separated by semicolon.
|-
! rowspan="2" style="background: #ddeeff;" | {{OSMW|Key:name|<code>Key:name</code>}}
| <code>name=*</code>
| This tagging is used for the name of a territory or other entity as it appears on the map. This tag can be complemented by the use of {{OSMW|Key:official_name|<code>key:official_name</code>}} as needed, if the official or formal name is something more specific.
| Various pages
|-
| <code>name:languageName=*</code>
| For international names or names in other languages, OGF does '''not''' use two-letter codes for languages. To include the name of a territory in another language, you must use the ''full name'' as defined by [[Index:Languages|consensus language names]]. For example, a territory called Zyxyz on the map may have additional tagging as <code>name:ingerish=Ziks</code> and <code>name:plevian=Zeccia</code>. Notice in this example how <code>name:en</code> and <code>name:it</code> are not used.
| Various pages
|-
! rowspan="3" style="background: #ddeeff;" | <code>key:ogf</code>
| <code>ogf:admin_level=*</code>
| Custom administrative tag for OGF areas (e.g. for area calculation), equivalent to admin_level for actual administrative units. This tag is to be used on relations in conjunction with at least: land_area=administrative, name=* and type=multipolygon.
| Various administrative pages
|-
| <code>ogf:id=*</code>
| Custom tag for OGF territorial identifications. '''Please do not remove or alter.'''
| Various administrative pages
|-
| <code>ogf:wiki=*</code>
| Custom tag for linking to wiki page. Please only include the wiki article name for the territory (e.g. <code>ogf:wiki=Plevia</code>).
| Most multimap pages
|-
! rowspan="8" style="background: #ddeeff;" | <code>key:organization</code>
| <code>organization:AN=*</code>
| [[Assembly of Nations]] membership status, with possible parameters <code>member</code> and <code>no</code>
| rowspan="8" | [[Index:Intergovernmental organizations]]
|-
| <code>organization:AC=*</code>
| [[Antarephian Coalition]] membership status, with possible parameters <code>member</code> and <code>observer</code>
|-
| <code>organization:ASUN=*</code>
| [[Association of South Ulethan Nations]] membership status, with possible parameters <code>member</code>, <code>observer</code>, and <code>partner</code>
|-
| <code>organization:EUOIA=*</code>
| [[East Ulethan Organization of Intergovernmental Associates]] membership status, with possible parameters <code>member</code> and <code>observer</code>
|-
| <code>organization:EgU=*</code>
| [[Egalian Union]] membership status, with possible parameters <code>member</code> and <code>observer</code>
|-
| <code>organization:IC=*</code>
| [[Ingerish Commonwealth]] membership status, with possible parameters <code>member</code> and <code>observer</code>
|-
| <code>organization:HU=*</code>
| [[Hetzer Union]] membership status, with possible parameters <code>member</code> and <code>observer</code>
|-
| <code>organization:TCC=*</code>
| [[Tarephia Cooperation Council]] membership status, with possible parameters <code>member</code> and <code>observer</code>
|-
! rowspan="2" style="background: #ddeeff;" | {{OSMW|Key:power_supply|<code>key:power_supply</code>}}
| <code>power_supply:frequency=*</code>
| Frequency of the common residential utility power in Hertz (Hz). The two used in the real world are 50 and 60.
| rowspan="2" | [[Index:Mains electricity]]
|-
| <code>power_supply:voltage=*</code>
| Voltage of the common residential utility power in volts (V).
|-
! rowspan="4" style="background: #ddeeff;" | {{OSMW|Key:timezone|<code>key:timezone</code>}}
| <code>timezone=+hh</code>
| Used for any whole number between -12 and 12. Zero needs a plus (+). Each whole number would display a consistent time, with four or six colors being possible and rotating through for ease of style sheet.
| rowspan="4" | [[Index:Time zones]]
|-
| <code>timezone=+hh:mm</code>
| Used for any offset time zone. One standardized color for all (bulk "other" category) just to show that it is different from hour-based time zones.
|-
| <code>timezone:dst=*</code>
| Parameters are simply <code>yes</code> and <code>no</code>. Definitions may be defined in the timezone note.
|-
| <code>timezone:note=*</code>
| Comment used for display on popup when clicking the map. Will be capped at 50 characters.
|-
| colspan="4" | <references />
|}
 
===Biographical information===
The OGF map also supports the ability to have custom tagging to provide world-building information that can populate wiki tables. These tags are a little more particular in their usage, as they pertain to people, places, historical events, and other things that otherwise do always visibly show on the map. Usage of these tags should be restricted by notability. For example, a person with no historical impact should not have biographical information contained on the map itself. To get help constructing the tables for your wiki page, feel free to contact {{OGF user|Alessa}} for assistance.
 
{| class="wikitable unsortable" style="background: #f9f9ff;"
|-
! Key values
! Usage
! Subkey values
! Comment
|-
! rowspan="4" style="background: #ddeeff;" | <code>key:bio</code>
| rowspan="4" | For use on a <u>single</u> burial site, memorial, or monument to an individual. Do <u>not</u> contain the same biographical information on more than one object. Additionally, not all tags will be used for every individual.
| Locations:<br /><code>bio:birthplace=*</code><br /><code>bio:deathplace=*</code>
| Locations should be done using commas to separate from local to national. (E.g. Wahanta, Clamash, Federal States)
|-
| Dates:<br /><code>bio:birthdate=*</code><br /><code>bio:deathdate=*</code>
| No required format other than consistency in a territory. For approximate dates use decades or centuries by number (e.g. 1950s or 800s) and clarify in the note option.
|-
| Family:<br /><code>bio:spouse=*</code><br /><code>bio:children=*</code>
| Separate by commas if more than one in a category. Complex situations, such as multiple marriages and divorces, should be reserved for the wiki, using {{tl|snapshot person}}.
|-
| Other parameters:<br /><code>bio:occupation=*</code><br /><code>bio:sex=*</code><br /><code>bio:notes=*</code>
| Notes are be limited to 128 characters.
|-
|}
 
===Businesses to be included on the international listing===
International businesses of note that would like to appear in the [[Index:International business listing|international business listing]] can have specific OGF tags that populate the index page. These tags are a little more particular in their usage, and many are required to properly fill in the data. To include a business, there must be a node, way, or relation tagged as the headquarters. Then, the headquarters must be tagged with <code>headquarters=main</code>. This tagging is the required trigger for the Overpass query that pulls the data every hour. For generic use of the tag, <code>headquarters=yes</code> or <code>headquarters=office</code> should be used. All required tags listed below are needed to properly populate the listing.


== Country-specific Tagging ==
'''Important:''' Do not tag objects on the map with <code>headquarters=main</code> ''unless'' it is supposed to appear on the international business listing.


Certain tags in the OSM database, especially those related to territory administration, but also things like highways or railways, are not really held to specific standards in OSM, but rather vary from country to country.
{| class="wikitable unsortable" style="background: #f9f9ff;"
|-
! colspan="2" | Key and subkey values
! Subkey values
|-
! style="background: #ddeeff;" | {{OSMW|Key:brand|<code>key:brand</code>}}
| <code>brand=*</code>
| '''Required'''. This is the official branding of the corporation and is searchable in Overpass and what populates the table on the wiki. A headquarters building may be tagged as <code>name=XYZ World Headquarters</code>, but the brand is <code>brand=XYZ</code>. This branding can then be added to any additional object on the map, such as nodes for restaurants and shops. Multiple brands can be included on anything other than the headquarters on OGF with semicolon separation on OGF.
|-
! rowspan="4" style="background: #ddeeff;" | <code>key:economy</code>
| <code>economy:iclass=*</code>
| '''Required'''. Industry classification or ''brief'' description of products and services provided (e.g. "dairy" or "banking and insurance products").
|-
| <code>economy:scope=*</code>
| '''Required'''. A single-word description of the planned scope of the company (e.g. national, international, multinational, global).
|-
| <code>economy:sector=*</code>
| '''Required'''. Allowable parameters are <code>primary</code>, <code>secondary</code>, <code>tertiary</code>, and <code>quaternary</code>, based on a four-sector economic model.
* Primary sector involves the retrieval and production of raw-material commodities, such as mining, fishing, and farming.
* Secondary sector is the creation of goods from raw materials, such as manufacturing, construction, and textiles.
* Tertiary sector includes services, such as banking, transportation, and shopkeeping (sales or stores).
* Quaternary sector includes information generation and sharing, such as information technology, media, research and development, and education.
|-
| <code>economy:type=*</code>
| '''Required'''. A short description of the type of company (e.g. public, private, state-owned, etc.).
|-
! style="background: #ddeeff;" | <code>key:headquarters</code>
| <code>headquarters=main</code>
| '''Required'''. Entries tagged with <code>main</code> will appear on the list, so do not use this tag for other things.
|-
! style="background: #ddeeff;" | {{OSMW|Key:is_in|<code>key:is_in</code>}}
| <code>is_in:city=*</code><br /><code>is_in:country=*</code>
| '''Both are required'''. These fields should include the location of the headquarters. Even if the headquarters is outside a city, include the locality or nearest city.
|-
! style="background: #ddeeff;" | {{OSMW|Key:name|<code>key:name</code>}}
| <code>name=*</code>
| '''Required'''
|-
! rowspan="2" style="background: #ddeeff;" | <code>key:ogf</code>
| <code>ogf:logo=*</code>
| ''Optional''. List the file name for the logo on the wiki. Do not include brackets or <code>File:</code>.
|-
| <code>ogf:permission=*</code>
| '''Required'''. This tells users if they can use your business in their territory. Parameters are <code>yes</code>, <code>ask</code>, or <code>no</code>.
|-
|}


Thus it can be hard to know what standard to apply when we create our countries in OGF, too. Below is a collection of some of these problematic tags, with values being used in some of our OGF countries by various mappers.


=== Keys with OGF-specific usages ===
===Aviation tagging===
* ''[[Help:Tagging/admin_level|admin_level]]''
'''Important:''' The main territory relation, which the airport or airline HQ is located within, is also used in the construction of these lists. Only "canon" territories are considered (collab, owned, archived). The [[#Territory information]] section above should be consulted to ensure this relation is well constructed, especially the <code>ogf:wiki</code> field.
* ''[[Help:Tagging/place|place]]''
* ''[[Help:Tagging/highway|highway]]''
* ''... etc.''


== Rendering ==
{{relation|65829|Gobras Worldport|none}} (airport), {{way|310753|Khaiwoon International Airport}}, {{way|38558980|Gobrassian Airlines}} and {{way|319801|Air Khaiwoon}} can be used as examples for the tagging below.


Below we have attempted to document the real rendering based on tagging in different situations for OGF in the standard-style. In each case, if a given zoom-level is stated, the same rendering result is seen at higher zoom-levels unless otherwise stated.
====Airports====
For airports to appear in the [[Index:Airports|airports listing]] they must be well mapped and use some OGF-specific tagging. This tagging is the required trigger for the Overpass query that pulls the data every hour. All required tags listed below are needed to properly populate the listing.


The items are tested, but there may be errors. If you see one, please correct it here or mention on the [[Help_talk:Tagging|discussion-page]].
{| class="wikitable unsortable" style="background: #f9f9ff;"
|-
! colspan="2" | Key/tag
! Subkeys
|-
! rowspan="4" style="background: #ddeeff;" | {{OSMW|Tag:aeroway%3Daerodrome|<code>aeroway&equals;aerodrome</code>}}
| <code>ref=???</code>
| '''Required'''. A closed way or relation must be tagged with <code>aeroway=aerodrome</code>, with a unique three character code specified in the <code>ref</code> (preferred) or <code>iata</code> tags.


=== Beach, desert, heath and sand ===
Be sure to not use an already allocated code - check the list at [[Index:Aviation#Airports]] first. Where there are duplicates mappers should talk with each other to sort this out. As a general rule, the mapper who first used the code (look at the way/relation history) has priority.
this simple tags for areas without plants (or only few) as  '''natural = beach''' or '''desert''' or '''heath''' or '''sand''' (all visible beginning at level 10) shows
|-
* beach = light yellow area with black point-raster
| <code>int_name=*</code><br /><code>name=*</code>
* desert = light brown area
| '''Required'''. The name of the airport should be specified using the <code>int_name</code> (for international audience) or <code>name</code> tags.
* heath = light oliv area
|-
* sand = plain yellow area
| <code>serves=*</code><br /><code>description=*</code>
| ''Optional''. The city, or regional area served by the airport should be noted using <code>serves</code> and <code>description</code> can be used to supply additional information (max 100 characters).
|-
| <code>aerodrome:type=*</code>
| ''Optional''. The type, or class, of the airport is specified using <code>aerodrome:type</code>. The following three values will result in inclusion in the list:
* <code>global</code>: Global gateways that have a handful of flights longer than 3000km; only one per country with total population 5–15 million, only two per country with total population 15–30 million, and three or more for countries with a total population greater than 30 million. Countries with less than 5 million people should not include a global airport.
* <code>international</code>: International airports.
* <code>regional</code> (default if not specified) Domestic airports without regularly-manned customs facilities.
However, any of the following entries will result in the airport being {{color|red|explicitly excluded}} from the list:
* <code>public</code>, <code>gliding</code>, <code>airfield</code>, <code>private</code>, <code>military/public</code>, or<code>military</code>
|-
! style="background: #ddeeff;" | {{OSMW|Tag:aeroway%3Drunway|<code>aeroway&equals;runway</code>}}
| <code>ref=*</code><br /> <code>length=*</code><br/> <code>width=*</code><br/> <code>surface=*</code>
| '''Required'''. One or more runways must be mapped as an unclosed way within the aerodrome boundary. Values as per standard OSM usage, with <code>length</code> and <code>width</code> in metres. <code>ref</code> must be present and {{OSMW|Tag:aeroway%3Drunway#Tags_to_use_in_combination|well formed}}.
|-
! style="background: #ddeeff;" | {{OSMW|Tag:aeroway%3Dterminal|<code>aeroway&equals;terminal</code>}}
| <code>name=*</code><br/> <code>ref=*</code><br/>
| '''Required'''. One or more terminals must be mapped within the aerodrome boundary. Either <code>name</code> or <code>ref</code> must be present.
|-  
! style="background: #ddeeff;" | {{OSMW|Tag:aeroway%3Dgate|<code>aeroway&equals;gate</code>}}
|
| ''Optional''. Gates may be mapped as nodes adjacent to terminal, within the aerodrome boundary
|-
|}


=== Cemeteries ===
====Airlines====
Cemeteries global are visible at zoom 10 as darker green area
For airline routes to be mapped the headquarters of the airline must first be mapped, this uses the same tagging scheme as [[#Businesses to be included on the international listing]], with the addition of <code>ref</code>.
*  '''landuse = cemetery'''  = shows at zoom 14 ("500 m") a darker green area with gravestones
*  '''landuse = cemetery'''  and  '''religion = jewish'''  = at zoom 14 a darker green area with the jewish hexagon ("David star")
*  '''landuse = cemetery'''  and  '''religion = christian'''  = at zoom 14 a darker green area with cross
* 2nd or 3rd tag as  '''name = Xyz'''  = is shown at zoom 15 ("300 m")


=== Green grass ===
{| class="wikitable unsortable" style="background: #f9f9ff;"
If you tag  '''landuse = meadow, landuse = grass, leisure = common, leisure = garden, landuse = recreation_ground, landuse = conservation''' or '''landuse = village_green''' = in all this cases you see a light green area (colour #cfeca8). Even if the Podlatch2-editor shows at your editing grey or different green areas, the renderer make his light green, visible at zoom 10.
|-
! colspan="2" | Key and subkey values
! Subkey values
|-
! style="background: #ddeeff;" | {{OSMW|Key:brand|<code>key:brand</code>}}
| <code>brand=*</code>
| '''Required'''. This is the official branding of the airline and is searchable in Overpass and what populates the table on the wiki. A headquarters building may be tagged as <code>name=AirXYZ World Headquarters</code>, but the brand is <code>brand=AirXYZ</code>.
|-
! rowspan="4" style="background: #ddeeff;" | <code>key:economy</code>
| <code>economy:iclass=airline</code>
| '''Required'''.
|-
| <code>economy:scope=*</code>
| '''Required'''. A single-word description of the planned scope of the company (e.g. national, international, multinational, global).
|-
| <code>economy:sector=tertiary</code>
| '''Required'''.
|-
| <code>economy:type=*</code>
| '''Required'''. A short description of the type of company (e.g. public, private, state-owned, etc.).
|-
! style="background: #ddeeff;" | <code>key:headquarters</code>
| <code>headquarters=main</code>
| '''Required'''.
|-
! style="background: #ddeeff;" | {{OSMW|Key:is_in|<code>key:is_in</code>}}
| <code>is_in:city=*</code>
| '''Required'''. The city the headquarters are located within. If the headquarters is outside a city, include the locality or nearest city.
|-
! style="background: #ddeeff;" | {{OSMW|Key:name|<code>key:name</code>}}
| <code>name=*</code>
| '''Required'''
|-
! style="background: #ddeeff;" | {{OSMW|Key:ref|<code>key:ref</code>}}
| <code>ref=*</code>
| '''Required''', two character alphanumeric ID for the airline.
|-
! rowspan="2" style="background: #ddeeff;" | <code>key:ogf</code>
| <code>ogf:logo=*</code>
| ''Optional''. List the file name for the logo on the wiki. Do not include brackets or <code>File:</code>.
|-
| <code>ogf:permission=*</code>
| '''Required'''. This tells users if they can use your airline in their territory. Parameters are <code>yes</code>, <code>ask</code>, or <code>no</code>.
|-
! style="background: #ddeeff;" | {{OSMW|Key:description|<code>key:description</code>}}
| <code>description=*</code>
| ''Optional''. Brief description.
|-
! style="background: #ddeeff;" | {{OSMW|Key:colour|<code>key:colour</code>}}
| <code>colour=#RRGGBB</code>
| ''Optional''. Used to indicate the official colour of the airline, for use on the route map. A Web RGB colour code (hex triplet), e.g. #FF0000 for red, should be used.
|-
|}


If you tag '''leisure = recreation_ground''', (instead of landuse = recreation_ground) then the area is not in the green of grass, but in the same darker variante as '''leisure = park'''. If you tag '''natural = grassland''', you get an area in the colour between the green of grass and and the green of park. Both tags are visible at zoom 10 as the others.
====Airline routes====
Airline routes are described by adding entries into the source and destination airports. The permission values for the airport and airlines should be respected, and routes are only extracted for canon territories.


The tag '''natural = scrub''' makes the next variante of a green, a little bit darker as park, but lighter as the rendering for woods. Visible at zoom 10 too.
The ↦ measurement tool in the [https://wiki.opengeofiction.net/util/map_scale.html scale helper] can be used to visualise great circle path and distance between two points. Ensure distances are realistic and avoid creating ''Empires in the Sky'' - see also the guidelines under <code>aeroway=aerodrome</code> in the [[#Airports]] section above.


=== Military ===
{| class="wikitable unsortable" style="background: #f9f9ff;"
'''landuse = military''' = a red striped area at zoom 10
|-
*  '''military = barracks'''  = a darker red area at zoom 10 - can set alone
! colspan="2" | Key/tag
*   '''military = danger_area'''  = alone drawn you see nothing, inside of ''landuse = military'' this area has a darker red at zoom 10 as the normal military landuse
! Subkeys
|-
! rowspan="2" style="background: #ddeeff;" | {{OSMW|Tag:aeroway%3Daerodrome|<code>aeroway&equals;aerodrome</code>}}
| <code>destination:XX=*</code>
| '''Required'''. There should be a <code>destination:XX=*</code> for each airline which serves the airport, with the <code>XX</code> being replaced by the unique 2 character airline code. The value should be a semicolon <code>;</code> separated list of the three character airport codes flown to by this airline from this airport.
|-  
| <code>airline:XX=*</code>
| ''Optional''. Is this airport a <code>hub</code> or <code>focus</code> city for airline <code>XX</code>.
|}


=== Motorway in construction ===
[[Category:Help pages]]
Motorways in construction you can see at zoom-level 12 ("3 km"). Therefore both tags are necessary : '''highway = construction''' and '''construction = motorway'''. With the construction-tag other roads as motorways can shown too.
[[Category:Official OGF Documentation]]

Latest revision as of 14:16, 11 November 2025

In terms of tag usage (keys and values), OpenGeofiction attempts to stick to the standards and best practices as extensively documented on the File:OpenStreetMapW.svg OpenStreetMap wiki. Users are encouraged to consult the wiki for the most up-to-date tagging practices and to understand how things render on the map. There are extensive discussions of File:OpenStreetMapW.svg map features and File:OpenStreetMapW.svg how to map various elements.

OpenGeofiction uses some custom tagging, however, as a means of administrating the site and for further world-building. Below, we discuss some aspects of tagging that provide additional clarification for use in OpenGeofiction.

Country-specific Tagging

Even on OpenStreetMap, there are varying standards for how things such as administrative boundaries, highways, and railroads are mapped depending on region or individual country. Similarly, different territories on OpenGeofiction also feature different definitions for what is rendered. For example, a way tagged highway=tertiary in one territory may have very different attributes from one in another. Here are a collection of tags and how they are defined by the mappers of various territories.

Special OGF tags

Unlike OpenStreetMap, OpenGeoFiction does not represent a real, physical world; the needs of the site are different. Thus, OpenGeofiction features a collection of additional site-exclusive tags to help facilitate the site's administration and to help users with collaborative world-building. Please note that these tags are extensions of OpenStreetMap tagging and are only designed to be used on OpenGeofiction.

Please note that the tags is_in:continent=* and ogf:id=* must be included on every territory relation for administrative purposes. Do not remove or change the values of these tags without first having admin approval.

Territory information

Key and tag values Comment Map type and page
File:OpenStreetMapW.svg key:driving_side driving_side=* May be added to the territory relation or individual highways to highlight the territory's primary driving side. Permissible parameters:
  • Left
  • Mixed
  • Right
Index:Driving side
key:economy economy=* Parameters are defined here as numerical values. If your territory does not fit cleanly into a specific model, please use one of the multiples of ten for generic or broad definitions.
  • 20 (Traditional economy, broadly or generically speaking)
  • 21 (Barter economy)
  • 22 (Subsistence economy)
  • 23 (Other currency-less economy)
  • 30 (Planned economy, broadly or generically speaking)
  • 31 (Decentralized planned economy)
  • 32 (Corporatist planned economy)
  • 33 (Distributist planned economy)
  • 34 (Participatory planned economy/akin to "Dutch 'polder' model")
  • 35 (Command planned economy, e.g. "Soviet model")
  • 40 (Market economy, broadly or generically speaking)
  • 41 (Laissez-faire or free-market capitalist economy)
  • 42 (Corporate capitalist market economy)
  • 44 (Mercantilism)
  • 45 (Socialist market economy)
  • 46 (Market feudal economy)
  • 50 (Mixed economy, broadly or generically speaking)
  • 51 (Mixed-market economy, e.g. "American model")
  • 52 (Social market economy, e.g. "Rhenish model")
  • 53 (Welfare capitalist economy, e.g. "Nordic model")
  • 54 (State-driven investment economy, e.g. "East Asian model")
  • 55 (Dirigist economy, e.g. "French model")
  • 56 (Mixed feudal economy)
  • 60 (Religious economy, broadly or generically speaking)
  • 90 (Other economic systems)
Index:World economics
economy:gdp=* Only use numerical values with no comma separation and decimals offset by a period instead of a comma. Do not include currency symbols. Assume all are in a common international banking standard that is similar to measuring GDP in USD in the real-world.
economy:hdi=* Any numerical value between 0 and 1 is permissible.
economy:note=* Custom description that may be used to describe elements of the economic ideology but is limited to 64 characters.
File:OpenStreetMapW.svg key:gauge gauge=* Although OSM only uses it to tag individual rail lines, it may be added to the territory relation on OGF to highlight national standards. Values that map are presently limited to 1000, 1067, 1435, 1520, 1600, 1668, 1676, and other. Additional values may be added later should demand warrant. Index:Rail transport
key:governance[1] governance=* Parameters are defined here as numerical values. If your territory does not fit cleanly into a specific model, please use one of the multiples of ten for generic or broad definitions.
  • 20 (Direct democracy, broadly defined)
  • 21 (Full presidential democracy)
  • 22 (Semi-presidential or dual-elective democracy)
  • 30 (Republic, broadly defined)
  • 31 (Full presidential democratic republic)
  • 32 (Semi-presidential republic)
  • 33 (Parliamentary republic with largely ceremonial head-of-state)
  • 34 (Parliamentary republic with dependent presidency)
  • 35 (Religious republic)
  • 36 (Merchant republic)
  • 40 (Monarchy or autocracy, broadly defined)
  • 41 (Parliamentary constitutional monarchies with strong monarch)
  • 43 (Parliamentary constitutional monarchies with weak or ceremonial monarch)
  • 45 (Religious autocracy such as bishoprics, caliphates, etc.)
  • 46 (Diumvirate or triumvirate)
  • 49 (Dictatorship)
  • 50 (Aristocracy, broadly defined)
  • 53 (Parliamentary aristocracy)
  • 55 (Theocratic rule)
  • 56 (Feudal aristocracy)
  • 57 (Oligarchy)
  • 58 (One-party state)
  • 59 (Military junta)
  • 60 (Tribal confederation, broadly defined)
  • 61 (Chiefdom)
  • 90 (Other or undefined)
Index:Government
governance:structure=* Parameters defined as decentralized, federation, and unitary.
key:history history:established=* Year of establishment, founding, or independence. Must be strictly a single numerical value without symbols or other text. Index:World history
history:independence_from=* List territory from whom it gained independence.
history:revolution=* Year of current governance structure, whether it be by new constitution or revolution.
File:OpenStreetMapW.svg key:is_in is_in:continent=* Permissible parameters: Antarephia, Beginner, East Uletha, Ereva, Kartumia, North Archanta, Orano, Pelanesia, South Archanta, Tarephia, West Uletha. Please do not remove or alter. Various administrative pages
File:OpenStreetMapW.svg key:language[2] language:official=* Can be used for multiple languages separated by semicolon. Index:Languages
language:regional=* Can be used for multiple languages separated by semicolon.
language:minority=* Can be used for multiple languages separated by semicolon.
File:OpenStreetMapW.svg Key:name name=* This tagging is used for the name of a territory or other entity as it appears on the map. This tag can be complemented by the use of File:OpenStreetMapW.svg key:official_name as needed, if the official or formal name is something more specific. Various pages
name:languageName=* For international names or names in other languages, OGF does not use two-letter codes for languages. To include the name of a territory in another language, you must use the full name as defined by consensus language names. For example, a territory called Zyxyz on the map may have additional tagging as name:ingerish=Ziks and name:plevian=Zeccia. Notice in this example how name:en and name:it are not used. Various pages
key:ogf ogf:admin_level=* Custom administrative tag for OGF areas (e.g. for area calculation), equivalent to admin_level for actual administrative units. This tag is to be used on relations in conjunction with at least: land_area=administrative, name=* and type=multipolygon. Various administrative pages
ogf:id=* Custom tag for OGF territorial identifications. Please do not remove or alter. Various administrative pages
ogf:wiki=* Custom tag for linking to wiki page. Please only include the wiki article name for the territory (e.g. ogf:wiki=Plevia). Most multimap pages
key:organization organization:AN=* Assembly of Nations membership status, with possible parameters member and no Index:Intergovernmental organizations
organization:AC=* Antarephian Coalition membership status, with possible parameters member and observer
organization:ASUN=* Association of South Ulethan Nations membership status, with possible parameters member, observer, and partner
organization:EUOIA=* East Ulethan Organization of Intergovernmental Associates membership status, with possible parameters member and observer
organization:EgU=* Egalian Union membership status, with possible parameters member and observer
organization:IC=* Ingerish Commonwealth membership status, with possible parameters member and observer
organization:HU=* Hetzer Union membership status, with possible parameters member and observer
organization:TCC=* Tarephia Cooperation Council membership status, with possible parameters member and observer
File:OpenStreetMapW.svg key:power_supply power_supply:frequency=* Frequency of the common residential utility power in Hertz (Hz). The two used in the real world are 50 and 60. Index:Mains electricity
power_supply:voltage=* Voltage of the common residential utility power in volts (V).
File:OpenStreetMapW.svg key:timezone timezone=+hh Used for any whole number between -12 and 12. Zero needs a plus (+). Each whole number would display a consistent time, with four or six colors being possible and rotating through for ease of style sheet. Index:Time zones
timezone=+hh:mm Used for any offset time zone. One standardized color for all (bulk "other" category) just to show that it is different from hour-based time zones.
timezone:dst=* Parameters are simply yes and no. Definitions may be defined in the timezone note.
timezone:note=* Comment used for display on popup when clicking the map. Will be capped at 50 characters.
  1. Not to be confused with File:OpenStreetMapW.svg the government key in use for other things.
  2. OSM does not use the key language for countries or territories, as it is often with the parameter of what language is used in an institution as subkey (language:es=yes). Other subkeys exist on OSM: inscription, physician, teaching, worship. Our use of language here is to provide additional data about language usage within an administrative division.

Biographical information

The OGF map also supports the ability to have custom tagging to provide world-building information that can populate wiki tables. These tags are a little more particular in their usage, as they pertain to people, places, historical events, and other things that otherwise do always visibly show on the map. Usage of these tags should be restricted by notability. For example, a person with no historical impact should not have biographical information contained on the map itself. To get help constructing the tables for your wiki page, feel free to contact Alessa for assistance.

Key values Usage Subkey values Comment
key:bio For use on a single burial site, memorial, or monument to an individual. Do not contain the same biographical information on more than one object. Additionally, not all tags will be used for every individual. Locations:
bio:birthplace=*
bio:deathplace=*
Locations should be done using commas to separate from local to national. (E.g. Wahanta, Clamash, Federal States)
Dates:
bio:birthdate=*
bio:deathdate=*
No required format other than consistency in a territory. For approximate dates use decades or centuries by number (e.g. 1950s or 800s) and clarify in the note option.
Family:
bio:spouse=*
bio:children=*
Separate by commas if more than one in a category. Complex situations, such as multiple marriages and divorces, should be reserved for the wiki, using {{snapshot person}}.
Other parameters:
bio:occupation=*
bio:sex=*
bio:notes=*
Notes are be limited to 128 characters.

Businesses to be included on the international listing

International businesses of note that would like to appear in the international business listing can have specific OGF tags that populate the index page. These tags are a little more particular in their usage, and many are required to properly fill in the data. To include a business, there must be a node, way, or relation tagged as the headquarters. Then, the headquarters must be tagged with headquarters=main. This tagging is the required trigger for the Overpass query that pulls the data every hour. For generic use of the tag, headquarters=yes or headquarters=office should be used. All required tags listed below are needed to properly populate the listing.

Important: Do not tag objects on the map with headquarters=main unless it is supposed to appear on the international business listing.

Key and subkey values Subkey values
File:OpenStreetMapW.svg key:brand brand=* Required. This is the official branding of the corporation and is searchable in Overpass and what populates the table on the wiki. A headquarters building may be tagged as name=XYZ World Headquarters, but the brand is brand=XYZ. This branding can then be added to any additional object on the map, such as nodes for restaurants and shops. Multiple brands can be included on anything other than the headquarters on OGF with semicolon separation on OGF.
key:economy economy:iclass=* Required. Industry classification or brief description of products and services provided (e.g. "dairy" or "banking and insurance products").
economy:scope=* Required. A single-word description of the planned scope of the company (e.g. national, international, multinational, global).
economy:sector=* Required. Allowable parameters are primary, secondary, tertiary, and quaternary, based on a four-sector economic model.
  • Primary sector involves the retrieval and production of raw-material commodities, such as mining, fishing, and farming.
  • Secondary sector is the creation of goods from raw materials, such as manufacturing, construction, and textiles.
  • Tertiary sector includes services, such as banking, transportation, and shopkeeping (sales or stores).
  • Quaternary sector includes information generation and sharing, such as information technology, media, research and development, and education.
economy:type=* Required. A short description of the type of company (e.g. public, private, state-owned, etc.).
key:headquarters headquarters=main Required. Entries tagged with main will appear on the list, so do not use this tag for other things.
File:OpenStreetMapW.svg key:is_in is_in:city=*
is_in:country=*
Both are required. These fields should include the location of the headquarters. Even if the headquarters is outside a city, include the locality or nearest city.
File:OpenStreetMapW.svg key:name name=* Required
key:ogf ogf:logo=* Optional. List the file name for the logo on the wiki. Do not include brackets or File:.
ogf:permission=* Required. This tells users if they can use your business in their territory. Parameters are yes, ask, or no.


Aviation tagging

Important: The main territory relation, which the airport or airline HQ is located within, is also used in the construction of these lists. Only "canon" territories are considered (collab, owned, archived). The #Territory information section above should be consulted to ensure this relation is well constructed, especially the ogf:wiki field.

Gobras Worldport (airport), Khaiwoon International Airport, Gobrassian Airlines and Air Khaiwoon can be used as examples for the tagging below.

Airports

For airports to appear in the airports listing they must be well mapped and use some OGF-specific tagging. This tagging is the required trigger for the Overpass query that pulls the data every hour. All required tags listed below are needed to properly populate the listing.

Key/tag Subkeys
File:OpenStreetMapW.svg aeroway=aerodrome ref=??? Required. A closed way or relation must be tagged with aeroway=aerodrome, with a unique three character code specified in the ref (preferred) or iata tags.

Be sure to not use an already allocated code - check the list at Index:Aviation#Airports first. Where there are duplicates mappers should talk with each other to sort this out. As a general rule, the mapper who first used the code (look at the way/relation history) has priority.

int_name=*
name=*
Required. The name of the airport should be specified using the int_name (for international audience) or name tags.
serves=*
description=*
Optional. The city, or regional area served by the airport should be noted using serves and description can be used to supply additional information (max 100 characters).
aerodrome:type=* Optional. The type, or class, of the airport is specified using aerodrome:type. The following three values will result in inclusion in the list:
  • global: Global gateways that have a handful of flights longer than 3000km; only one per country with total population 5–15 million, only two per country with total population 15–30 million, and three or more for countries with a total population greater than 30 million. Countries with less than 5 million people should not include a global airport.
  • international: International airports.
  • regional (default if not specified) Domestic airports without regularly-manned customs facilities.

However, any of the following entries will result in the airport being explicitly excluded from the list:

  • public, gliding, airfield, private, military/public, ormilitary
File:OpenStreetMapW.svg aeroway=runway ref=*
length=*
width=*
surface=*
Required. One or more runways must be mapped as an unclosed way within the aerodrome boundary. Values as per standard OSM usage, with length and width in metres. ref must be present and File:OpenStreetMapW.svg well formed.
File:OpenStreetMapW.svg aeroway=terminal name=*
ref=*
Required. One or more terminals must be mapped within the aerodrome boundary. Either name or ref must be present.
File:OpenStreetMapW.svg aeroway=gate Optional. Gates may be mapped as nodes adjacent to terminal, within the aerodrome boundary

Airlines

For airline routes to be mapped the headquarters of the airline must first be mapped, this uses the same tagging scheme as #Businesses to be included on the international listing, with the addition of ref.

Key and subkey values Subkey values
File:OpenStreetMapW.svg key:brand brand=* Required. This is the official branding of the airline and is searchable in Overpass and what populates the table on the wiki. A headquarters building may be tagged as name=AirXYZ World Headquarters, but the brand is brand=AirXYZ.
key:economy economy:iclass=airline Required.
economy:scope=* Required. A single-word description of the planned scope of the company (e.g. national, international, multinational, global).
economy:sector=tertiary Required.
economy:type=* Required. A short description of the type of company (e.g. public, private, state-owned, etc.).
key:headquarters headquarters=main Required.
File:OpenStreetMapW.svg key:is_in is_in:city=* Required. The city the headquarters are located within. If the headquarters is outside a city, include the locality or nearest city.
File:OpenStreetMapW.svg key:name name=* Required
File:OpenStreetMapW.svg key:ref ref=* Required, two character alphanumeric ID for the airline.
key:ogf ogf:logo=* Optional. List the file name for the logo on the wiki. Do not include brackets or File:.
ogf:permission=* Required. This tells users if they can use your airline in their territory. Parameters are yes, ask, or no.
File:OpenStreetMapW.svg key:description description=* Optional. Brief description.
File:OpenStreetMapW.svg key:colour colour=#RRGGBB Optional. Used to indicate the official colour of the airline, for use on the route map. A Web RGB colour code (hex triplet), e.g. #FF0000 for red, should be used.

Airline routes

Airline routes are described by adding entries into the source and destination airports. The permission values for the airport and airlines should be respected, and routes are only extracted for canon territories.

The ↦ measurement tool in the scale helper can be used to visualise great circle path and distance between two points. Ensure distances are realistic and avoid creating Empires in the Sky - see also the guidelines under aeroway=aerodrome in the #Airports section above.

Key/tag Subkeys
File:OpenStreetMapW.svg aeroway=aerodrome destination:XX=* Required. There should be a destination:XX=* for each airline which serves the airport, with the XX being replaced by the unique 2 character airline code. The value should be a semicolon ; separated list of the three character airport codes flown to by this airline from this airport.
airline:XX=* Optional. Is this airport a hub or focus city for airline XX.