I'm wanting to download ways with specific tags, eg highway=secondary/building=yes, for a certain area in JOSM but im not sure how. As far as i can tell there's a thing called XAPI that will do this but it looks very complicated and I cant understand what to do. Can someone tell me how, in layman's terms, please? A quick walk through would be helpful.
Much appreciated, Will.
Overpass API is what you need:
<query type="way" into="networks">
<bbox-query s="49.5" n="51.5" w="2.52" e="6.5"/>
<has-kv k="highway" v="secondary"/>
Enter that into http://overpass-api.de/query_form.html
And save the result as an file with an .OSM extension. (first limit the coordinates, or you'll end up with all the secondary roads in Belgium)
Then open that file in JOSM.
There is a JOSM plugin called mirrored_download or similar.
First purpose of that is to get OSM data from a mirrored server much faster if you want to load large areas.
But second benefit is that you can add a filtering parameter like [highway=*] or [boundary=administrative] or anything you want.
it uses the same parameters that you can find in the OSM wiki about xapi download.
Does this work for you?