For example, I might want a list of rail trails: objects tagged highway=cycleway and railway=abandoned. The only way I know of doing this is to download all objects with one of those tags and then filter them down, but either unfiltered list will be huge. asked 22 Jul '10, 02:06 NE2 |
Meanwhile there is the new Overpass API allowing to search for objects with two or more specific tags, like: http://www.overpass-api.de/api/xapi?way[highway=cycleway][railway=abandoned][@meta] (this example uses the XAPI compatibility layer) answered 27 Jul '12, 13:19 scai ♦ 2
In the meantime it is even simpler: Go to http://overpass-turbo.eu/ , position the map, open the wizard, and enter "highway=cycleway AND railway=abandoned". It will automatically generate the needed query code (you may want to remove the "node" line from the code) and show the results on a map. Getting a "list" is a tiny bit more complicated (a real "list" format is not available in its export formats): setting the output to csv would be possible.
(12 Jan '15, 12:52)
aseerel4c26 ♦
|
No, it is currently not possible. XAPI as well as the API only support searching for one tag. Advanced data filtering and manipulation tasks are beyond the scope of our existing APIs. Power users wishing to perform such actions are advised to download the full area of interest, import it into a relational database (for example using Osmosis), and then perform queries on that database. answered 22 Jul '10, 09:23 Frederik Ramm ♦ Jochen Topf How do I search even for one tag? For example: name="Metuje". Thanks for help.
(21 Sep '10, 16:47)
Kozuch
2
@Kozuch: http://www.informationfreeway.org/api/0.6/*[name=Metuje] (see http://wiki.openstreetmap.org/wiki/Xapi)
(24 Sep '10, 23:47)
Mormegil
|