I can obtain a list of items with a combination of two tags using the XAPI as follows:

wget http://jxapi.openstreetmap.org/xapi/api/0.6/*[amenity=pub][source=*][bbox=-0.645,52.756,-0.595,52.856]

but is it possible to obtain a list of "tag X but not tag Y" (using either XAPI, or Overpass, or something else)?

asked 09 Oct '11, 13:20

SomeoneElse's gravatar image

SomeoneElse ♦
32.0k63330748
accept rate: 15%


Seems like you could use Osmfilter after downloading a .osm file to drop elements with specific tags. I never used it though.

permanent link

answered 09 Oct '11, 14:27

scai's gravatar image

scai ♦
31.1k18281434
accept rate: 23%

Thanks - that was exactly what I was looking for.

(09 Oct '11, 18:01) SomeoneElse ♦
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:

×147
×114
×32

question asked: 09 Oct '11, 13:20

question was seen: 2,946 times

last updated: 09 Oct '11, 18:01

powered by OSQA