Changeset 6813 in josm for trunk/data


Ignore:
Timestamp:
2014-02-05T23:17:54+01:00 (6 years ago)
Author:
simon04
Message:

see #9545 - Add public_transport:version=1/2 to older/newer public transport relation preset to avoid false positives in role checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r6811 r6813  
    26192619        <item name="Public transport route" icon="presets/path.png" type="relation">
    26202620            <link href="http://wiki.openstreetmap.org/wiki/Proposed_features/Public_Transport#Route" />
    2621             <label text="Edit Route" />
     2621            <label text="Edit public transport route" />
    26222622            <space />
    26232623            <key key="type" value="route" />
    26242624            <combo key="route" text="Route type" values="train,subway,monorail,tram,bus,trolleybus,aerialway,ferry" values_searchable="true" match="keyvalue" />
     2625            <key key="public_transport:version" value="2" /> <!-- only validate marked relations in order to avoid false positives -->
    26252626            <reference ref="name_ref" />
    26262627            <optional>
     
    27832784    </group>
    27842785    <group name="Public Transport (legacy)" icon="presets/bus.png">
     2786        <item name="Public transport route (legacy)" icon="presets/path.png" type="relation">
     2787            <label text="Edit Public transport route (legacy)" />
     2788            <key key="type" value="route" />
     2789            <combo key="route" text="Route type" values="train,subway,monorail,tram,bus,trolleybus,aerialway,ferry" values_searchable="true" match="keyvalue" />
     2790            <key key="public_transport:version" value="1" /> <!-- only validate marked relations in order to avoid false positives -->
     2791            <reference ref="name_ref" />
     2792            <optional>
     2793                <text key="from" text="From (initial stop)" />
     2794                <text key="to" text="To (terminal stop)" />
     2795                <text key="via" text="Via (intermediate stops)" />
     2796                <text key="operator" text="Operator" />
     2797                <text key="network" text="Network" />
     2798                <text key="description" text="Description" />
     2799                <combo key="colour" text="Color (HTML name or hexadecimal code)" values_context="color" values="black,brown,green,red,blue,gray,white,#CD853F" />
     2800            </optional>
     2801            <roles>
     2802                <role key="" text="route segment" requisite="optional" type="way" />
     2803                <role key="forward" text="forward segment" requisite="optional" type="way" />
     2804                <role key="backward" text="backward segment" requisite="optional" type="way" />
     2805                <role key="stop" text="halt point" requisite="optional" type="node" member_expression="highway=bus_stop OR railway=station OR railway=halt railway=tram_stop" />
     2806                <role key="forward_stop" text="forward halt point" requisite="optional" type="node" member_expression="highway=bus_stop OR railway=station OR railway=halt railway=tram_stop" />
     2807                <role key="backward_stop" text="backward halt point" requisite="optional" type="node" member_expression="highway=bus_stop OR railway=station OR railway=halt railway=tram_stop" />
     2808                <role key="platform" text="platform" requisite="optional" type="node,way,closedway" member_expression="highway=platform OR railway=platform" />
     2809            </roles>
     2810        </item>
    27852811        <item name="Station" name_context="railway" icon="styles/standard/transport/railway_station.png" type="node,closedway">
    27862812            <link href="http://wiki.openstreetmap.org/wiki/Tag:railway=station"
Note: See TracChangeset for help on using the changeset viewer.