I discovered an extremely fast way to fetch exactly the data one needs out of the OSM DB:<br>
<br>
An example:<br>
<br>
<p><osm-script timeout="7200" element-limit="9073741824"><br>  <query type="relation"><br>    <has-kv k="type" v="network"/><br>    <has-kv k="network" v="rcn"/><br>
    <has-kv k="name" v="Limburg"/><br>  </query><br>  <br>  <br>    <union><br>      <item/><br>      <recurse  from="routerelation" type="relation-node" into="routerelationsnodes"/><br>
      <recurse type="relation-relation" into="routerelations"/><br>      <recurse from="routerelations" type="relation-way" into="routerelationways"/><br>      <recurse from="routerelationways" type="way-node" into="routerelationwaysnodes"/><br>
      <recurse from="routerelationwaysnodes" type="node-way" into="parentways"/><br>      <recurse from="parentways" type="way-node" into="parentwaysnodes"/><br>
      <recurse from="parentways" type="way-relation" into="parentwaysrelations"/><br>    </union><br>  </p>
<p>  <print mode="meta"/><br></osm-script></p>
<p>This can be entered at:</p>
<p><a href="http://www.overpass-api.de/query_form.html">http://www.overpass-api.de/query_form.html</a></p>
And the result is an .osm file with a skeleton of all the rcn routes in that network. This works a whole lot better than the APIand is an order of magnitude faster than querying the normal API with JOSM.<br>
<br>Maybe it's useful for somebody else as well,<br>
<br>
Jo<br>
<br>Another (simpler) example is this one:<br>
<br>
<osm-script timeout="7200" element-limit="9073741824"><br>
  <query type="node"><br>
    <has-kv k="rcn_ref"/><br>
  </query><br>
    <union><br>
      <item/><br>
      <recurse type="node-relation"/><br>
    </union><br>
<br>
  <print mode="meta"/><br>
</osm-script><br>
<br>
(Worldwide, there is a way to declare a bounding box or a contour way or relation, but I didn't find out how yet)<br>
<br>