How can I get all ATMs in a bounding box? I know how to get "amenity=atm", but there is also "amenity=bank atm=yes". OK, I can request for "amenity=" and filter the result for all ATMs. But perhaps "atm=yes" is also used in "aerialway=station" or "tourism=hotel" or whatever. How can I get all ATMs if I don't know in which tags they are hidden? Of course I don't want to download "" (all available data) to reduce traffic and server load. This is only an example. Actually I am interested of getting any "...=yes" tag, not only ATM. asked 14 Apr '12, 13:36 Plenz |
You seem to be misunderstanding how tagging works. An object can have any number of tags (key/value combinations). A bank that also has an ATM would have two tags, An XAPI query for The only real problem is in fact the combination of values with a semicolon, so there will be some objects tagged answered 14 Apr '12, 14:41 Frederik Ramm ♦ Maybe I misunderstood tagging, maybe I misunderstood XAPI calls - anyway, I did not know that ".../xapi?*[atm=yes][bbox=..." works. Thanks for that! But I am afraid I need two XAPI calls if I want to get all ATMs: one call "?node[amenity=atm]" and a second call "?*[atm=yes]". Or is there a way to put both requests into one XAPI call?
(14 Apr '12, 15:31)
Plenz
1
To really catch all ATMs you would need even more - you would have to ask for amenity=bank;atm and all those funny other combinations as well. You might consider trying out the Overpass API for more complex queries. Or, you can of course download the whole planet file, place it in a database, and query it to your heart's content...
(14 Apr '12, 15:34)
Frederik Ramm ♦
Indeed, Overpass API/Language Guide seems to be a page to read. Unfortunately, there are no wildcard mentioned as for example amenity=*;atm. Will this work or not?
(14 Apr '12, 15:54)
Plenz
|