I need to know if its possible to print only the required key, for eg: i need nodes with add:street key , but what i want in the output is only that addr:street key not other tags like name,addr:city etc.

asked 04 Feb '16, 13:10

Arun%20Gowtham's gravatar image

Arun Gowtham
0111114
accept rate: 0%


out:csv is one way to do this.

Something like (untested) [out:csv(::lat,::lon,"addr:street")].

For ways and relations, ::lat and ::lon are output if you also use out center as your print statement. If you aren't interested in the coordinates, they can also just be omitted.

permanent link

answered 04 Feb '16, 13:35

maxerickson's gravatar image

maxerickson
10.8k1073151
accept rate: 30%

@maxerickson Is there any workaround for JSON format?

(04 Feb '16, 13:41) Arun Gowtham

Not that I know of. I guess it is easy enough to do on the client side that filtering tags isn't a high priority.

(04 Feb '16, 13:54) maxerickson
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:

×355
×64

question asked: 04 Feb '16, 13:10

question was seen: 1,188 times

last updated: 04 Feb '16, 13:54

powered by OSQA