Changes between Initial Version and Version 1 of Presets/USLevelCrossingHornRules


Ignore:
Timestamp:
2026-11-19T03:05:14+01:00 (2 weeks ago)
Author:
trainhorn
Comment:

New preset: US railway level crossings and train-horn rules (crossing:whistle, FRA quiet zones)

Legend:

Unmodified
Added
Removed
Modified
  • Presets/USLevelCrossingHornRules

    v1 v1  
     1[[PageOutline(2-3)]]
     2= Railway level crossings & horn rules (US) =
     3
     4A tagging preset for railway level crossings (`railway=level_crossing`, `railway=crossing`): the warning and protection equipment at the crossing, and whether trains sound their horn there (`crossing:whistle`, incl. US FRA quiet zones). It only uses keys that are documented on the OSM wiki; it does not introduce any new tag.
     5
     6Author: Train Horn ([https://train-horn.com/legal/ train-horn.com legal reference], an independent US reference on train horns and the rules for their use; not legal advice).
     7
     8== Items ==
     9||= Group =||= Item =||= Tags set =||= Optional keys =||= OSM wiki =||
     10|| Railway level crossings & horn rules (US) || Level crossing (road / rail) || `railway=level_crossing` || `crossing:barrier`, `crossing:light`, `crossing:bell`, `crossing:saltire`, `crossing:activation`, `crossing:supervision`, `crossing:on_demand`, `crossing:whistle`, `crossing:whistle:conditional`, `note` || [https://wiki.openstreetmap.org/wiki/Tag:railway=level_crossing Tag:railway=level_crossing] ||
     11|| Railway level crossings & horn rules (US) || Pedestrian / path crossing (rail) || `railway=crossing` || `crossing:barrier`, `crossing:light`, `crossing:bell`, `crossing:saltire`, `crossing:activation`, `crossing:supervision`, `crossing:on_demand`, `crossing:whistle`, `crossing:whistle:conditional`, `note` || [https://wiki.openstreetmap.org/wiki/Tag:railway=crossing Tag:railway=crossing] ||
     12|| US FRA quiet zones (crossing:whistle) || Level crossing in a quiet zone (24 h) || `railway=level_crossing`, `crossing:whistle=optional` || `note`, `crossing:barrier`, `crossing:light`, `crossing:bell`, `crossing:saltire`, `crossing:activation`, `crossing:supervision`, `crossing:on_demand` || [https://wiki.openstreetmap.org/wiki/Key:crossing:whistle Key:crossing:whistle] ||
     13|| US FRA quiet zones (crossing:whistle) || Level crossing in a partial (night-time) quiet zone || `railway=level_crossing`, `crossing:whistle=yes`, `crossing:whistle:conditional=*` || `note`, `crossing:barrier`, `crossing:light`, `crossing:bell`, `crossing:saltire`, `crossing:activation`, `crossing:supervision`, `crossing:on_demand` || [https://wiki.openstreetmap.org/wiki/Key:crossing:whistle Key:crossing:whistle] ||
     14|| US FRA quiet zones (crossing:whistle) || Level crossing with a wayside horn || `railway=level_crossing`, `crossing:whistle=wayside` || `note`, `crossing:barrier`, `crossing:light`, `crossing:bell`, `crossing:saltire`, `crossing:activation`, `crossing:supervision`, `crossing:on_demand` || [https://wiki.openstreetmap.org/wiki/Key:crossing:whistle Key:crossing:whistle] ||
     15
     16== Keys used ==
     17 * [https://wiki.openstreetmap.org/wiki/Key:crossing:barrier crossing:barrier]: no / gate / half / double_half / full / yes (de facto)
     18 * [https://wiki.openstreetmap.org/wiki/Key:crossing:light crossing:light]: flashing warning lights, yes/no (in use)
     19 * [https://wiki.openstreetmap.org/wiki/Key:crossing:bell crossing:bell]: warning bell, yes/no (in use)
     20 * [https://wiki.openstreetmap.org/wiki/Key:crossing:saltire crossing:saltire]: crossbuck sign; yes is the default, so usually only `no` is worth adding (in use)
     21 * [https://wiki.openstreetmap.org/wiki/Key:crossing:activation crossing:activation]: automatic / local / remote / user, semicolon-separated if combined (de facto)
     22 * [https://wiki.openstreetmap.org/wiki/Key:crossing:supervision crossing:supervision]: no / automatic / camera / attendant / phone (in use)
     23 * [https://wiki.openstreetmap.org/wiki/Key:crossing:on_demand crossing:on_demand]: the crossing is only activated on demand, yes/no
     24 * [https://wiki.openstreetmap.org/wiki/Key:crossing:whistle crossing:whistle]: yes / optional / wayside (approved, Proposal:Level crossing train horn usage)
     25 * [https://wiki.openstreetmap.org/wiki/Key:crossing:whistle crossing:whistle:conditional]: time-limited horn rules in [https://wiki.openstreetmap.org/wiki/Conditional_restrictions conditional restriction] syntax, e.g. `optional @ (22:00-07:00)`; documented on the crossing:whistle page
     26 * [https://wiki.openstreetmap.org/wiki/Key:note note]: free-text note for other mappers
     27
     28== US FRA quiet zones ==
     29In the US, 49 CFR Part 222 requires locomotive horns to sound at public highway-rail grade crossings, except inside a quiet zone established under FRA rules. OSM has an approved tag for this: `crossing:whistle=optional` on each crossing node of the quiet zone. Partial (night-time) quiet zones use `crossing:whistle=yes` plus `crossing:whistle:conditional=optional @ (hh:mm-hh:mm)`. A crossing whose horn is replaced by a stationary horn uses `crossing:whistle=wayside`.
     30
     31There is no established OSM tag for the quiet zone itself (an area, its name or its FRA ID); `quietzone=yes` was deliberately not adopted (see the rationale on [https://wiki.openstreetmap.org/wiki/Key:crossing:whistle Key:crossing:whistle]). This preset therefore does not invent one. If you want to record the quiet zone name or how you verified it, use the optional `note` field.
     32
     33== How to use it ==
     34 1. Add the preset: Preferences > Tagging Presets > search "horn" or "level crossing" and add it, or use the URL below.
     35 2. Select the node shared by the road (or path) and the railway, then pick an item from Presets > Railway level crossings & horn rules (US).
     36 3. Only fill in what you can verify on the ground or from a source you are allowed to use.
     37
     38'''Sources:''' survey on the ground is best (quiet zone crossings usually carry "No Train Horn" signs). Do not copy data from websites, maps or databases unless their license is compatible with the ODbL; a bulk import of government crossing data needs the OSM import guidelines process, not this preset.
     39
     40== Icons and license ==
     41Icons are the ones shipped with JOSM (`presets/transport/railway/level_crossing.svg`, `crossing.svg`). The preset is licensed like the rest of this wiki and JOSM's presets: CC-BY-SA 3.0 / LGPL.
     42
     43== Preset code ==
     44{{{
     45#!preset
     46<!--
     47  Railway level crossings & horn rules (US) - JOSM tagging preset
     48  Uses only keys documented on wiki.openstreetmap.org (checked 2026-11-18):
     49    railway=level_crossing, railway=crossing, crossing:barrier, crossing:bell,
     50    crossing:light, crossing:activation, crossing:supervision, crossing:saltire,
     51    crossing:on_demand, crossing:whistle (approved), crossing:whistle:conditional,
     52    note.
     53  No new tags are introduced. US FRA quiet zones are mapped per crossing with
     54  crossing:whistle=optional (see Key:crossing:whistle); there is no area tag.
     55  License: CC-BY-SA 3.0 / LGPL (same as the JOSM wiki and JOSM presets).
     56-->
     57<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
     58         author="Train Horn (https://train-horn.com/legal/)"
     59         version="1.[[revision]]_[[date]]"
     60         shortdescription="Railway level crossings &amp; horn rules (US)"
     61         description="Level crossing protection (barrier, lights, bell, saltire, activation, supervision) and train-horn rules (crossing:whistle) incl. US FRA quiet zones. Only documented OSM keys."
     62         link="https://josm.openstreetmap.de/wiki/Presets/USLevelCrossingHornRules"
     63         baselanguage="en">
     64
     65  <chunk id="th_crossing_protection">
     66    <label text="Protection at the crossing" />
     67    <combo key="crossing:barrier" text="Barrier (crossing:barrier)"
     68           values="no,gate,half,double_half,full,yes"
     69           display_values="No barrier,Gates,Half barriers (entry only),Double half barriers,Full barriers,Barrier (type unknown)"
     70           values_sort="false" />
     71    <check key="crossing:light" text="Flashing warning lights (crossing:light)" />
     72    <check key="crossing:bell" text="Warning bell (crossing:bell)" />
     73    <check key="crossing:saltire" text="Crossbuck / saltire sign (crossing:saltire; yes is the default)" />
     74    <multiselect key="crossing:activation" text="Activation (crossing:activation)"
     75                 values="automatic;local;remote;user"
     76                 display_values="Automatic (track circuit / treadle);Local (railway staff on site);Remote (signalman / dispatcher);User (operated by road user)"
     77                 values_sort="false" rows="4" />
     78    <combo key="crossing:supervision" text="Supervision (crossing:supervision)"
     79           values="no,automatic,camera,attendant,phone"
     80           display_values="No supervision,Automatic (e.g. radar),Camera,Attendant,Phone to dispatcher"
     81           values_sort="false" />
     82    <check key="crossing:on_demand" text="Activated on demand only (crossing:on_demand)" />
     83  </chunk>
     84
     85  <chunk id="th_horn_rule">
     86    <label text="Train horn rule (only if it differs from the US norm)" />
     87    <combo key="crossing:whistle" text="Horn use (crossing:whistle)"
     88           values="optional,wayside,yes"
     89           display_values="Optional: trains need not sound the horn (US quiet zone),Wayside horn at the crossing sounds instead of the train,Trains must sound the horn (where this is not the norm)"
     90           values_sort="false" />
     91    <combo key="crossing:whistle:conditional" text="Time-limited rule (crossing:whistle:conditional)"
     92           editable="true" delimiter="|" values="optional @ (22:00-07:00)" values_no_i18n="true" />
     93    <text key="note" text="Note for mappers (e.g. quiet zone name and how you verified it)" />
     94  </chunk>
     95
     96  <group name="Railway level crossings &amp; horn rules (US)" icon="presets/transport/railway/level_crossing.svg">
     97
     98    <item name="Level crossing (road / rail)" icon="presets/transport/railway/level_crossing.svg" type="node" preset_name_label="true">
     99      <link wiki="Tag:railway=level_crossing" />
     100      <label text="Node shared by the road and the railway." />
     101      <key key="railway" value="level_crossing" />
     102      <optional>
     103        <reference ref="th_crossing_protection" />
     104        <reference ref="th_horn_rule" />
     105      </optional>
     106    </item>
     107
     108    <item name="Pedestrian / path crossing (rail)" icon="presets/transport/railway/crossing.svg" type="node" preset_name_label="true">
     109      <link wiki="Tag:railway=crossing" />
     110      <label text="Node shared by a footway/path and the railway." />
     111      <key key="railway" value="crossing" />
     112      <optional>
     113        <reference ref="th_crossing_protection" />
     114        <reference ref="th_horn_rule" />
     115      </optional>
     116    </item>
     117
     118    <separator />
     119
     120    <group name="US FRA quiet zones (crossing:whistle)" icon="presets/transport/railway/level_crossing.svg">
     121
     122      <item name="Level crossing in a quiet zone (24 h)" icon="presets/transport/railway/level_crossing.svg" type="node" preset_name_label="true">
     123        <link wiki="Key:crossing:whistle" />
     124        <label text="FRA quiet zone: trains are not required to sound the horn (49 CFR Part 222)." />
     125        <label text="Tag each crossing node; there is no OSM area tag for quiet zones." />
     126        <key key="railway" value="level_crossing" />
     127        <key key="crossing:whistle" value="optional" />
     128        <optional>
     129          <text key="note" text="Note for mappers (e.g. quiet zone name and how you verified it)" />
     130          <reference ref="th_crossing_protection" />
     131        </optional>
     132      </item>
     133
     134      <item name="Level crossing in a partial (night-time) quiet zone" icon="presets/transport/railway/level_crossing.svg" type="node" preset_name_label="true">
     135        <link wiki="Key:crossing:whistle" />
     136        <label text="Horn is sounded by day and not at night: crossing:whistle=yes plus a conditional value." />
     137        <key key="railway" value="level_crossing" />
     138        <key key="crossing:whistle" value="yes" />
     139        <combo key="crossing:whistle:conditional" text="Quiet hours (crossing:whistle:conditional)"
     140               editable="true" delimiter="|" values="optional @ (22:00-07:00)" values_no_i18n="true" />
     141        <optional>
     142          <text key="note" text="Note for mappers (e.g. quiet zone name and how you verified it)" />
     143          <reference ref="th_crossing_protection" />
     144        </optional>
     145      </item>
     146
     147      <item name="Level crossing with a wayside horn" icon="presets/transport/railway/level_crossing.svg" type="node" preset_name_label="true">
     148        <link wiki="Key:crossing:whistle" />
     149        <label text="A stationary horn at the crossing sounds when it activates." />
     150        <key key="railway" value="level_crossing" />
     151        <key key="crossing:whistle" value="wayside" />
     152        <optional>
     153          <text key="note" text="Note for mappers" />
     154          <reference ref="th_crossing_protection" />
     155        </optional>
     156      </item>
     157
     158    </group>
     159  </group>
     160</presets>
     161}}}