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

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 ♦
accept rate: 16%

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 ♦
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



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: 09 Oct '11, 13:20

question was seen: 4,044 times

last updated: 09 Oct '11, 18:01

powered by OSQA