start of turn restriction editor
[potlatch2.git] / resources / map_features.xml
index 15b0e3dcb941de493dff274c4c274d5bf1bb562a..62fe7f2478c8b7e5e7a7f5ceda4f1a61d66180fe 100644 (file)
     <inputSet ref="cycle"/>
     <inputSet ref="bus-route"/>
   </inputSet>
+  
+  <inputSet id="junctionNode">
+    <inputSet ref="turnRestrictions"/>
+  </inputSet>
 
   <inputSet id="roadRefs">
     <input type="freetext" presence="always"
         key="maxspeed"/>
   </inputSet>
   
+  <inputSet id="turnRestrictions">
+    <input type="turn" name="Turn restriction" description="Turn restriction" category="Restrictions" priority="normal" presence="onTagMatch">
+       <match k="type" v="restriction"/>
+       <role role="via"/>
+    </input>
+  </inputSet>
+
   <inputSet id="naptan">
     <input type="freetext" presence="onTagMatch" category="Naptan" description="12 character internal Naptan ID" name="Atco Code" key="naptan:AtcoCode" />
     <input type="choice" presence="onTagMatch" category="Naptan" description="The eight-point compass bearning" name="Naptan Bearing" key="naptan:Bearing" >
     <input type="freetext" presence="always" category="Naming" name="Network" key="network" description="The network of the tram service" priority="low"/>
   </feature>
   
+
+    <!-- Junction nodes (for turn restrictions) -->
+
+    <feature>
+       <point/>
+       <within entity="way" k="highway" minimum="2"/>
+       <inputSet ref="junctionNode"/>
+    </feature>
+
 </mapFeatures>