<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.4.0 (2097 thorn-01.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
 <node id="100101" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.200"/>
 <node id="100102" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.201"/>
 <node id="100103" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.202"/>
 <node id="100104" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.203"/>

 <node id="100201" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2000"/>
 <node id="100211" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2001"/>
 <node id="100202" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2010"/>
 <node id="100212" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2011"/>
 <node id="100203" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2020"/>
 <node id="100213" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2021"/>
 <node id="100204" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2030"/>
 <node id="100214" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0001" lon="8.2031"/>


 <way id="100501" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100101"/>
  <nd ref="100102"/>
  <tag k="highway" v="residential"/>
  <tag k="name" v="Residential Street"/>
 </way>

 <way id="100502" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100102"/>
  <nd ref="100103"/>
  <tag k="highway" v="residential"/>
  <tag k="name" v="Residential Street"/>
 </way>

 <way id="100503" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100103"/>
  <nd ref="100104"/>
  <!-- untagged -->
 </way>

 <way id="100511" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100201"/>
  <nd ref="100211"/>
 </way>

 <way id="100512" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100202"/>
  <nd ref="100212"/>
 </way>

 <way id="100513" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100203"/>
  <nd ref="100213"/>
 </way>

 <way id="100514" version="1" timestamp="2015-12-31T23:59:99Z">
  <nd ref="100204"/>
  <nd ref="100214"/>
 </way>

 <relation id="100901" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="node" ref="100101" role="stop_entry_only"/>
  <member type="way" ref="100511" role="platform_entry_only"/>
  <member type="node" ref="100102" role="stop"/>
  <member type="way" ref="100512" role="platform"/>
  <member type="node" ref="100103" role="stop"/>
  <member type="way" ref="100513" role="platform"/>
  <member type="node" ref="100104" role="stop_exit_only"/>
  <member type="way" ref="100514" role="platform_exit_only"/>
  <member type="way" ref="100501" role=""/>
  <member type="way" ref="100502" role=""/>
  <member type="way" ref="100503" role=""/>
  <tag k="colour" v="#F5A9E1"/>
  <tag k="from" v="A"/>
  <tag k="name" v="Bus 301: A =&gt; B"/>
  <tag k="network" v="ABC"/>
  <tag k="ref" v="301"/>
  <tag k="route" v="bus"/>
  <tag k="to" v="B"/>
  <tag k="type" v="route"/>
 </relation>

 <relation id="100902" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="node" ref="100104" role="stop_entry_only"/>
  <member type="way" ref="100514" role="platform_entry_only"/>
  <member type="node" ref="100103" role="stop"/>
  <member type="way" ref="100513" role="platform"/>
  <member type="node" ref="100102" role="stop"/>
  <member type="way" ref="100512" role="platform"/>
  <member type="node" ref="100101" role="stop_exit_only"/>
  <member type="way" ref="100511" role="platform_exit_only"/>
  <member type="way" ref="100503" role=""/>
  <member type="way" ref="100502" role=""/>
  <member type="way" ref="100501" role=""/>
  <tag k="colour" v="#F5A9E1"/>
  <tag k="from" v="B"/>
  <tag k="name" v="Bus 301: B =&gt; A"/>
  <tag k="network" v="ABC"/>
  <tag k="ref" v="301"/>
  <tag k="route" v="bus"/>
  <tag k="to" v="A"/>
  <tag k="type" v="route"/>
 </relation>


 <relation id="100903" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="node" ref="100101" role="stop_entry_only"/>
  <member type="way" ref="100511" role="platform_entry_only"/>
  <member type="node" ref="100102" role="stop_exit_only"/>
  <member type="way" ref="100512" role="platform_exit_only"/>
  <member type="way" ref="100501" role=""/>
  <tag k="colour" v="#F5A9E1"/>
  <tag k="from" v="A"/>
  <tag k="name" v="Bus 302: A =&gt; C"/>
  <tag k="network" v="ABC"/>
  <tag k="ref" v="301"/>
  <tag k="route" v="bus"/>
  <tag k="to" v="C"/>
  <tag k="type" v="route"/>
 </relation>


 <relation id="100911" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="relation" ref="100901" role=""/>
  <member type="relation" ref="100902" role=""/>
  <tag k="colour" v="#F5A9E1"/>
  <tag k="name" v="Bus 301"/>
  <tag k="network" v="ABC"/>
  <tag k="ref" v="301"/>
  <tag k="route_master" v="bus"/>
  <tag k="type" v="route_master"/>
 </relation>


 <!-- modified node updates relation -->
 <node id="110101" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.200">
    <tag k="name" v="Stop"/>
 </node>

 <relation id="110901" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="node" ref="110101" role="stop"/>
  <tag k="route" v="bus"/>
  <tag k="type" v="route"/>
 </relation>

 <!-- relation with missing members -->
 <node id="120101" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.200">
    <tag k="name" v="Stop"/>
 </node>

 <relation id="120901" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="node" ref="120101" role="stop"/>
  <member type="relation" ref="120102" role="stop"/> <!-- missing -->
  <member type="node" ref="120103" role="stop"/> <!-- missing -->
  <tag k="route" v="bus"/>
  <tag k="type" v="route"/>
 </relation>

<!-- non-route type is not imported -->
 <node id="130101" version="1" timestamp="2015-12-31T23:59:99Z" lat="53.0" lon="8.200">
    <tag k="name" v="Stop"/>
 </node>

 <relation id="130901" version="23" timestamp="2015-06-02T04:13:19Z">
  <member type="node" ref="130101" role="stop"/>
  <tag k="route" v="bus"/>
  <tag k="type" v="bus_route"/> <!-- invalid type -->
 </relation>

</osm>
