wiki:Presets/LaneAttributes

Version 11 (modified by skyper, 10 years ago) ( diff )

reworked preset

Lane Attributes preset

This presets helps to tag highway lane attributes according to OSM wiki lanes.

Please have a look at the appropriate style Lane and Road Attributes for more infos about the subject and a nice style.

Help needed

  • I need some nice icons (.svg)
  • Please feel free to
    • translate
    • update/enhance
    • write me an email

Preset code

<?xml version="1.0" encoding="UTF-8"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
  author="skyper"
  version="0.54_2023-01-21"
  link="https://josm.openstreetmap.de/wiki/Presets/LaneAttributes"
  shortdescription="Lane attributes"
  de.shortdescription="Fahrspurattribute"
  description="A preset for tagging (turn-) lanes"
  de.description="Ein Vorlage für (Abbiege-) Fahrspur Attribute">

  <chunk id="surface">
    <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,metal,wood,paving_stones,cobblestone,gravel,pebblestone,compacted,grass_paver,grass,sand,ground,sett" />
  </chunk>

  <chunk id="LanesWiki">
      <link href="https://wiki.openstreetmap.org/wiki/Lanes"
            de.href="https://wiki.openstreetmap.org/wiki/DE:Lanes"
            fr.href="https://wiki.openstreetmap.org/wiki/FR:Lanes"
            pl.href="https://wiki.openstreetmap.org/wiki/Pl:Lanes"
            ro.href="https://wiki.openstreetmap.org/wiki/Ro:Lanes"
            ru.href="https://wiki.openstreetmap.org/wiki/RU:Lanes" />
  </chunk>

  <chunk id="OnewayLanesAccess">
    <preset_link preset_name="Access lanes (oneway)" />
  </chunk>

  <chunk id="TwowayLanesAccess">
    <preset_link preset_name="Access lanes (dualway)" />
  </chunk>

  <group name="Lanes" de.name="Fahrspuren" >
    <item name="Multi lanes (oneway)" de.name="Mehrere Fahrspuren (Einbahnstraße)" type="way,closedway">
      <reference ref="LanesWiki" />
      <check key="oneway" text="Oneway" default="on" />
      <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="2" />
      <combo key="turn:lanes" text="Turn lanes" values="reverse;left|through|right,left|through;right,none|right,reverse;left|through|through;right,merge_to_right|merge_to_left,sharp_left|slight_left|through|slight_right|sharp_right" />
      <combo key="change:lanes" text="Change lanes" values="yes|not_right|no,yes|not_left,not_left|yes,not_left|not_right,no|no" />
      <text key="destination:lanes" text="Lane destinations" />
      <text key="destination:ref:lanes" text="Lane destination refs" />
      <text key="destination:symbol:lanes" text="Lane destination symbol" />
      <combo key="placement" text="Placement" values="left_of:1,left_of:2,middle_of:1,middle_of:2,right_of:1,right_of:2,transition" />
      <text key="maxspeed" text="Maxspeed in kilometer (km)" />
      <text key="maxspeed:lanes" text="Maxspeed per lane in kilometer (km)" />
      <text key="width" text="Width in meter (m)" />
      <text key="width:lanes" text="Lane width in meter (m)" />
      <reference ref="surface" />
      <combo key="surface:lanes" text="Lane surface" values="asphalt|cobblestone,asphalt|asphalt|cobblestone,paved|unpaved" />
      <space/>
      <reference ref="OnewayLanesAccess" />
    </item>

    <item name="Multi lanes (dualway)" de.name="Mehrere Fahrspuren (zwei Fahrtrichtungen)" type="way,closedway">
      <reference ref="LanesWiki" />
      <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="2" />
      <combo key="lanes:forward" text="Lanes forward" values="1,2,3,4,5" length="2" />
      <combo key="lanes:backward" text="Lanes backward" values="1,2,3,4,5" length="2" />
      <combo key="lanes:both_ways" text="Lanes for both directions" values="1,2,3,4,5" length="2" />
      <combo key="turn:lanes:forward" text="Turn lanes forward" values="reverse;left|through|right,left|through;right,none|right,reverse;left|through|through;right,merge_to_right|merge_to_left,sharp_left|slight_left|through|slight_right|sharp_right" />
      <combo key="turn:lanes:backward" text="Turn lanes backward" values="reverse;left|through|right,left|through;right,none|right,reverse;left|through|through;right,merge_to_right|merge_to_left,sharp_left|slight_left|through|slight_right|sharp_right" />
      <combo key="turn:lanes:both_ways" text="Turn lanes both directions" values="reverse;left|through|right,left|through;right,none|right,reverse;left|through|through;right,merge_to_right|merge_to_left,sharp_left|slight_left|through|slight_right|sharp_right" />
      <combo key="change:lanes:forward" text="Change lanes forward" values="yes|not_right|no,yes|not_left,not_left|yes,not_left|not_right,no|no" />
      <combo key="change:lanes:backward" text="Change lanes backward" values="yes|not_right|no,yes|not_left,not_left|yes,not_left|not_right,no|no" />
      <text key="destination:lanes:forward" text="Lane destinations forward" />
      <text key="destination:lanes:backward" text="Lane destinations backward" />
      <text key="destination:ref:lanes:forward" text="Lane destination refs forward" />
      <text key="destination:ref:lanes:backward" text="Lane destination refs backward" />
      <text key="destination:symbol:lanes:forward" text="Lane destination symbol forward" />
      <text key="destination:symbol:lanes:backward" text="Lane destination symbol backward" />
      <combo key="placement:forward" text="Placement forward" values="left_of:1,left_of:2,middle_of:1,middle_of:2,right_of:1,right_of:2,transition" />
      <combo key="placement:backward" text="Placement backward" values="left_of:1,left_of:2,middle_of:1,middle_of:2,right_of:1,right_of:2,transition" />
      <text key="maxspeed" text="Maxspeed in kilometer (km)" />
      <text key="maxspeed:lanes:forward " text="Maxspeed per forward lane in kilometer (km)" />
      <text key="maxspeed:lanes:backward " text="Maxspeed per backward lane in kilometer (km)" />
      <text key="width" text="Width in meter (m)" />
      <text key="width:lanes:forward" text="Lane width forward in meter (m)" />
      <text key="width:lanes:backward" text="Lane width backward in meter (m)" />
      <reference ref="surface" />
      <combo key="surface:lanes:forward" text="Lane surface forward" values="asphalt|cobblestone,asphalt|asphalt|cobblestone,paved|unpaved" />
      <combo key="surface:lanes:backward" text="Lane surface backward" values="asphalt|cobblestone,asphalt|asphalt|cobblestone,paved|unpaved" />
      <space/>
      <reference ref="TwowayLanesAccess" />
    </item>

    <item name="General attributes (oneway)" de.name="Allgemeine Attribute (Einbahnstraße)" type="way,closedway">
      <reference ref="LanesWiki" />
      <check key="oneway" text="Oneway" default="on" />
      <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="2" />
      <multiselect key="turn" text="Turn" values="left;right;through;reverse;sharp_left;sharp_right;slight_left;slight_right" />
      <text key="destination" text="Destination" />
      <text key="destination:ref" text="Destination ref" />
      <text key="destination:symbol" text="Destination symbol" />
      <text key="maxspeed" text="Maxspeed in kilometer (km)" />
      <text key="width" text="Width in meter (m)" />
      <reference ref="surface" />
    </item>

    <item name="General attributes (dualway)" de.name="Allgemeine Attribute (zwei Fahrtrichtungen)" type="way,closedway">
      <reference ref="LanesWiki" />
      <combo key="lanes" text="Lanes" values="1,2,3,4,5" length="2" />
      <multiselect key="turn:forward" text="Turn forward" values="left;right;through;reverse;sharp_left;sharp_right;slight_left;slight_right" />
      <multiselect key="turn:backward" text="Turn backward" values="left;right;through;reverse;sharp_left;sharp_right;slight_left;slight_right" />
      <combo key="change:forward" text="Change forward" values="yes,no" />
      <combo key="change:backward" text="Change backward" values="yes,no" />
      <text key="destination::forward" text="Destinations forward" />
      <text key="destination::backward" text="Destinations backward" />
      <text key="destination:ref:forward" text="Destination refs forward" />
      <text key="destination:ref:backward" text="Destination refs backward" />
      <text key="destination:symbol:forward" text="Destination symbol forward" />
      <text key="destination:symbol:backward" text="Destination symbol backward" />
      <text key="maxspeed" text="Maxspeed in kilometer (km)" />
      <text key="maxspeed:forward " text="Maxspeed forward in kilometer (km)" />
      <text key="maxspeed:backward " text="Maxspeed backward in kilometer (km)" />
      <text key="width" text="Width in meter (m)" />
      <text key="width:forward" text="Lane width forward in meter (m)" />
      <text key="width:backward" text="Lane width backward in meter (m)" />
      <reference ref="surface" />
    </item>
    <separator/>

    <item name="Access lanes (oneway)" type="way,closedway" preset_name_label="true"> 
      <combo key="access:lanes" text="Access lanes" values="yes|no,yes|yes|no,yes|yes|yes|no,no|yes|yes|no,no|no,no|no|no" />
      <combo key="bicycle:lanes" text="Bicycles lanes" values="yes|designated,yes|yes|designated,yes|yes|yes|designated,yes|yes|designated|yes,yes|yes|designated|no,no|yes" />
      <combo key="bus:lanes" text="Bus lanes" values="yes|designated,yes|yes|designated,yes|no|designated,yes|yes|designated|yes,yes|yes|no|designated," />
      <combo key="hgv:lanes" text="Heavy good vehicle lanes" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="psv:lanes" text="Public transport lanes" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="taxi:lanes" text="Taxi lanes" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="hov:lanes" text="High-occupancy lanes" values="designated|yes|yes|yes|yes,designated|yes|yes|designated,yes|yes|designated" />
      <combo key="hov:minimum" text="High-occupancy minimum" values="2,3,4" length="1" />
      <combo key="railway:lanes" text="Railway lanes" values="tram|no,rail|no,tram|tram|no,no|tram|no,no|tram,no|no|tram,rail|rail|no,no|rail|no,no|rail,no|no|rail" />
      <combo key="train:lanes" text="Train access lanes" values="yes|no,yes|no|no,yes|yes|no,yes|yes|yes|no,no|yes|yes|no,no|yes,no|no,no|no|yes" />
    </item>

    <item name="Access lanes (dualway)" type="way,closedway" preset_name_label="true"> 
      <combo key="access:lanes:forward" text="Access lanes forward" values="yes|no,yes|yes|no,yes|yes|yes|no,no|yes|yes|no,no|no,no|no|no" />
      <combo key="access:lanes:backward" text="Access lanes backward" values="yes|no,yes|yes|no,no|yes|yes|no,no|no" />
      <combo key="bicycle:lanes:forward" text="Bicycles lanes forward" values="yes|designated,yes|yes|designated,yes|yes|yes|designated,yes|yes|designated|yes,yes|yes|designated|no,no|yes" />
      <combo key="bicycle:lanes:backward" text="Bicycles lanes backward" values="yes|designated,yes|yes|designated,yes|yes|yes|designated,yes|yes|designated|yes,yes|yes|designated|no,no|yes" />
      <combo key="bus:lanes:forward" text="Bus lanes forward" values="yes|designated,yes|yes|designated,yes|no|designated,yes|yes|designated|yes,yes|yes|no|designated," />
      <combo key="bus:lanes:backward" text="Bus lanes backward" values="yes|designated,yes|yes|designated,yes|no|designated,yes|yes|designated|yes,yes|yes|no|designated," />
      <combo key="hgv:lanes:forward" text="Heavy good vehicle lanes forward" values="yes|designated,yes|yes|designated,yes|yes|designated|yes" />
      <combo key="hgv:lanes:backward" text="Heavy good vehicle lanes backward" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="psv:lanes:forward" text="Public transport lanes forward" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="psv:lanes:backward" text="Public transport lanes backward" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="taxi:lanes:forward" text="Taxi lanes forward" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="taxi:lanes:backward" text="Taxi lanes backward" values="yes|designated,yes|yes|designated,yes|yes|designated|yes,no|yes" />
      <combo key="hov:lanes:forward" text="High-occupancy lanes forward" values="designated|yes|yes|yes|yes,designated|yes|yes|designated,yes|yes|designated" />
      <combo key="hov:lanes:backward" text="High-occupancy lanes backward" values="designated|yes|yes|yes|yes,designated|yes|yes|designated,yes|yes|designated" />
      <combo key="hov:minimum" text="High-occupancy minimum" values="2,3,4" length="1" />
      <space/>
      <combo key="railway:lanes:forward" text="Railway lanes forward" values="tram|no,rail|no,tram|tram|no,no|tram|no,no|tram,no|no|tram,rail|rail|no,no|rail|no,no|rail,no|no|rail" />
      <combo key="railway:lanes:backward" text="Railway lanes backward" values="tram|no,rail|no,tram|tram|no,no|tram|no,no|tram,no|no|tram,rail|rail|no,no|rail|no,no|rail,no|no|rail" />
      <combo key="train:lanes:forward" text="Train access lanes forward" values="yes|no,yes|no|no,yes|yes|no,yes|yes|yes|no,no|yes|yes|no,no|yes,no|no,no|no|yes" />
      <combo key="train:lanes:backward" text="Train access lanes backward" values="yes|no,yes|no|no,yes|yes|no,yes|yes|yes|no,no|yes|yes|no,no|yes,no|no,no|no|yes" />
    </item>
  </group>
</presets>

Presets_LaneAttributes-preset.xml, Presets_LaneAttributes.zip

Note: See TracWiki for help on using the wiki.