Search notes:

OpenStreetMap tags

Some assumptions about tags

These are some assumptions (!!!) about tags that I used while I was working on Swiss OpenStreetMap data.

access

Most important values in decreasing order: private, yes, no, destination, agricultural, permissive, customers, designated etc

amenity

Also found for Buildings

area

area is applied on closed ways. Its value of area should either be yes or no.
There doesn't seem to be an accepted key to indicate the size of an area (for example in square meters) - therefore area is sometimes (ab-)used to indicate such a size.
Do not confuse with surface.

boundary

administrative, protected_area, postal_code, old_administrative, country_border etc

Buildings

Buildings are stored as ways.
Such ways (usually?) have a key named building whose value simply is yes.
Optionally, such ways can have these address keys:
  • addr:street
  • addr:housenumber
  • addr:city
  • addr:postcode
  • addr:country

comment

Compare with note

created_by

The application with which the data was entered to the OSM database.
Typical values are JOSM, Merkaartor 0.13, Potlatch 0.10f, opengeodb2osm0.5.2

emergency

In Switzerland, by far the most used value for the emergency tag is fire_hydrant.
Other interesting values are defibrillator, life_ring and shelter.

information

In Switzerland, by far the most used value for the information key is guidepost. It is apparently used for what is called Wegweiser in German.

landuse

forest, meadow, farmland, gras, residential, farmyard, cemetery etc.
type=multipoligon apparently often comes in conjunction with landuse.

natural

Some naturally found objects such as tree (!), scrub, water, wood, peak, grassland, cliff, glacier (natural-glacier.sql) etc.
Even yes is found, at times! (See natural-yes_name.sql)
natural apparently often comes with type=multipoligon.

coastline

natural=coastline is a special case becasue of the massive amount of data required to map the entire coastline of the Earth.
OSMCoastline (github repository osmcode/osmcoastline) is a specialized tool to extract the coastline from the planet data.

name

The name of streets such as Hauptstrasse, Dorfstrasse, Bahnhofstrasse.
It can also name other objects, names such as France - Schweiz / Suisse / Svezzira (sic!), Coop, Volg, Migros, Denner, UBS, McDonald's were also found.

note

Compare with comment and the OSM Notes feature

source

The value of a source key seems to indicate what entity provided the data.
Some possible values are Bing, http://www.sogis.ch SO!GIS Import, Yahoo aerial images, Stadt Zürich Open Government Data; Geomatik + Vermessung; Tiefbau- und Entsorgungsdepartement etc.

surface

This key predominantly belong to streets, typical values are asphalt, gravel, paved, unpaved, ground, grass, dirt, concrete etc.
Do not confuse with area.

tracktype

grade1, grade2, grade3, grade4, grade5

maxspeed

This key might mostly belong to streets and railways, typical values are 20, 30, 50, 80, 100, 120, signals, walk

operator

SBB, VBZ, Luzerner Wanderwege, Robidog AG, Die Post etc

power

Values concerning power lines. Most frequent value (in Switzerland) is pole followed by tower, minor_line, line, substation, generator, sub_station, cable_distribution_cabinet, transformer etc

ref

Not entierly clear what this is used for. Typical values are 1, 2 …, A1, A2 … (Obviously used for Autobahnen).

railway

Concerning railways. Typical values rail, level_crossing, narrow_gauge, buffer_stop, tram, halt, subway, signal etc

route

Some values that are assocated with route include: trolleybus, foot, tram, railway, fitness_trail, power, road, ski, ferry, train, mtb, bicycle, piste, bus, hiking etc.

sac_scale

The key sac_scale classifies hiking trails. Typical values are: hiking (apparently corresponds to T1), mountain_hiking (T2), demanding_mountain_hiking (T3), alpine_hiking (T4), demanding_alpine_hiking (T5), difficult_alpine_hiking (T6).

service

driveway, parking_aisle, yard, siding, spur, emergency_access etc
There is even one with the value Nyffenegg (way with id 403303034).

swisstopo:*

swisstopo:BEZIRKSNUM

swisstopo:BFS_NUMMER

swisstopo:KANTONSNUM

swisstopo:OBJEKTART

swisstopo:SHN

symbol

symbol=gelber Diamant: apparently used for hiking trails.

type

type is intended to specify a relation's type, such as multipolygon, route, restriction, public_transport etc
type=associatedStreet seems to be mostly a relation that consists of a street and buildings (with the same address?).
If a relation's type is multipolygon, it apparently often comes also with landuse or natural. See type-multipolygon.sql.

*:charge vs *fee

At the end of May 2024, the OSM database contained the following counts:
toilets:fee 423
toilets:charge 17
*:fee 190775
*:charge 1732

url

Compare with website

website

Compare with url

Frequency of tags

The most frequent key values found in the tags as of May 2024 are:
Nodes:
1 addr:housenumber 75891058
2 addr:street 67659038
3 addr:city 52800288
4 source 52034081
5 addr:postcode 47782547
6 power 32023167
7 name 27057395
8 natural 26787949
9 highway 24558735
10 addr:country 21793247
11 amenity 14237210
12 source:date 11421474
13 addr:district 9933991
14 addr:state 8571210
15 barrier 8265638
16 place 6866797
17 crossing 6796911
18 operator 6504770
19 addr:hamlet 6421158
20 addr:place 6340316
Keys:
1 building 605384946
2 highway 232055211
3 source 220587727
4 addr:housenumber 75600282
5 addr:street 74277157
6 name 70778454
7 surface 60750061
8 addr:city 57313953
9 addr:postcode 50140750
10 landuse 41152641
11 natural 39593293
12 building:levels 31731501
13 waterway 29889263
14 service 25018526
15 oneway 22344167
16 addr:country 21816728
17 height 18604117
18 access 18294262
19 maxspeed 18071450
20 source:date 17200688
Relations:
1 type 12177351
2 name 3533084
3 natural 2993511
4 landuse 2100071
5 restriction 1922745
6 source 1344015
7 ref 1190429
8 network 1182231
9 route 1049214
10 building 1038010
11 boundary 848868
12 operator 738849
13 admin_level 713234
14 wikidata 666459
15 wetland 520122
16 public_transport 454208
17 wikipedia 421538
18 from 352283
19 to 350483
20 public_transport:version 291342

See also

Nodes, ways and relations

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745532048, '3.147.74.90', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/OpenStreetMap/tags(375): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78