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

How to download only the amenities from OSM data? Thanks

asked 27 Jun '12, 09:50

Independent%20L's gravatar image

Independent L
41335
accept rate: 0%

1

Could you specify which type of "amenities" you are looking for ? Did you check how they are tagged in OSM ? With the 'amenity' key or 'leisure' or 'tourism' ? Do u want them for the whole planet or just a country or a municipality ? Depending of that, you might have to use different methods to get them.

(27 Jun '12, 10:13) Pieren
1

For the whole planet the key to 'amenity'. If it were possible to all: 'amenity' key and 'leisure' and 'tourism'. Thanks

(27 Jun '12, 10:23) Independent L

Given the amount of data involved (see Pieren's answer below) perhaps it's worth asking what problem you're trying to solve? I'm sure that you don't just have a burning desire to have a very large list of amenities locally - you're doing that to solve a problem. It might help us to help you if you explain a bit about what that problem is.

(27 Jun '12, 11:44) SomeoneElse ♦

If you do mean the possible amenity values that can hold then you can get them from http://taginfo.openstreetmap.org/keys/amenity#values

permanent link

answered 06 Mar '15, 13:27

Rami%20Al-Salman's gravatar image

Rami Al-Salman
16
accept rate: 0%

edited 06 Mar '15, 13:48

1

If you want a list of the actual values that people have used, you need to look at taginfo:

http://taginfo.openstreetmap.org/keys/amenity#values

Unfortunately a number wiki pages are updated by people who "like to tell people how to tag things" rather than "document how people have tagged things", which makes the wiki less valuable as documentation than it might be.

(06 Mar '15, 13:45) SomeoneElse ♦

Yeah thanks a lot for the info.

(06 Mar '15, 13:47) Rami Al-Salman

Currently, we have about 4.6 millions objects tagged as 'amenity', 1.2m as 'leisure' and 0.5m as 'tourism'. Fur such amount of data, you cannot use one of the servers delivering extracts (like XAPI or compatibles). For you, I would recommend to download a full planet dump and use one tool extracting the data from the file like Osmosis, Osmium or OSMFilter. Probably the easiest to use is Osmosis (but maybe not the fastest).

permanent link

answered 27 Jun '12, 10:41

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

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:

×275
×94

question asked: 27 Jun '12, 09:50

question was seen: 13,316 times

last updated: 06 Mar '15, 13:48

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