Why not ask your question on the new OpenStreetMap Community Forum?

Where can I extract the complete list of tags being used in OSM?

asked 11 Jul '12, 13:27

jawadch's gravatar image

accept rate: 0%

edited 23 Aug '12, 14:11

Jonathan%20Bennett's gravatar image

Jonathan Ben...

The complete list of tags won't give you much information. Better determine the most used tags via taginfo as already explained by Jonathan and Frederik or take a look at the map features page in the wiki.

permanent link

answered 11 Jul '12, 15:35

scai's gravatar image

scai ♦
accept rate: 23%

Is there a way that I can extract just the most commonly used tags?

(11 Jul '12, 15:42) jawadch

Define what the "most commonly used tags" are in your opinion and throw away everything else? :). The map features page already provides an overview of the most commonly used tags. Use it in combination with taginfo and you should get a meaningful list.

(11 Jul '12, 15:56) scai ♦

There's an online tool that analyses tag usage in OpenStreetMap called TagInfo. As well as using the information it provides, either in your browser or via its API, you can download its internal databases containing the same information.

permanent link

answered 11 Jul '12, 13:30

Jonathan%20Bennett's gravatar image

Jonathan Ben...
accept rate: 18%

edited 11 Jul '12, 13:31

You probably do not want do extract the complete list of tags being used in OSM.

If you really wanted to then you could do this:

wget -O- http://planet.openstreetmap.org/planet-latest.osm.bz2 | grep "<tag" | cut -d\" -f2 | sort -u > my-tag-list.txt

This will yield a list of about 35,000 tag keys currently in use.

A better presented tag listing is available on http://taginfo.openstreetmap.org, and there you can also download sqlite files that contain lists of tags.

permanent link

answered 11 Jul '12, 13:31

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

You can download a list from http://wykenseagrave.co.uk/?p=703 which I created by copying and editing the wiki tag pages. This will get out of date as new tags are added, but I doubt if they'll change very often.

permanent link

answered 11 Jun '13, 05:01

Wyken%20Seagrave's gravatar image

Wyken Seagrave
accept rate: 0%

edited 11 Jun '13, 05:04


Note that this is a list of tag documentation pages, not a list of tags that are actually in use. The two aren't always the same thing.

(11 Jun '13, 09:30) Jonathan Ben...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



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:


question asked: 11 Jul '12, 13:27

question was seen: 19,885 times

last updated: 11 Jun '13, 09:30

powered by OSQA