Ticket #20192: 0001-Add-approved-parking-values-to-preset.patch

File 0001-Add-approved-parking-values-to-preset.patch, 3.1 KB (added by JeroenHoek, 5 years ago)
  • data/defaultpresets.xml

    From dc6da96d96470cdc5637c8bf72a7cee3b540defc Mon Sep 17 00:00:00 2001
    From: Jeroen Hoek <mail@jeroenhoek.nl>
    Date: Wed, 2 Dec 2020 19:33:29 +0100
    Subject: [PATCH] Add approved parking values to preset
    
    The `parking=*` values `carports`, `garage_boxes`, and `sheds` have been
    approved since 2009 and are in use.
    
    `parking=street_side` is a newly approved tag.
    
    This patch adds these values to the preset values for `parking=*`.
    
    For `parking=street_side` a separate preset is introduced where the
    `parking:orientation` tag can be set. This tag is not relevant for other
    parking-types, hence the separate preset.
    ---
     data/defaultpresets.xml | 24 +++++++++++++++++++++++-
     1 file changed, 23 insertions(+), 1 deletion(-)
    
    diff --git a/data/defaultpresets.xml b/data/defaultpresets.xml
    index a9d0529..ca43ac0 100644
    a b  
    213213    </chunk>
    214214    <chunk id="parking_name_type_ref">
    215215        <text key="name" text="Name" />
    216         <combo key="parking" text="Type" values="multi-storey,surface,underground,rooftop" values_context="parking" />
     216        <combo key="parking" text="Type" values="multi-storey,surface,underground,rooftop,street_side,lane,carports,garage_boxes,sheds" values_context="parking" />
    217217        <text key="ref" text="Reference number" />
    218218    </chunk>
    219219    <chunk id="parking_access_fee_operator_surface_smoothness">
     
    20722072            <reference ref="maxstay" />
    20732073            <reference ref="supervised_lit_oh" />
    20742074        </item> <!-- Parking -->
     2075        <item name="Street-side parking" icon="presets/vehicle/parking/parking.svg" type="node,closedway,multipolygon" preset_name_label="true">
     2076            <link wiki="Tag:parking=street_side" />
     2077            <space />
     2078            <key key="amenity" value="parking" />
     2079            <key key="parking" value="street_side" />
     2080            <combo key="parking:orientation"
     2081                text="Orientation"
     2082                display_values="Parallel to the carriage way,Diagonal in relation to the carriage way,Meets the carriage way at a straight angle"
     2083                values="parallel,diagonal,perpendicular"
     2084                values_context="parking:orientation" />
     2085            <space />
     2086            <reference ref="parking_access_fee_operator_surface_smoothness" />
     2087            <space />
     2088            <text key="capacity" text="Capacity (overall)" />
     2089            <combo key="capacity:disabled" text="Spaces for Disabled" values="yes,no,1,2,3" />
     2090            <combo key="capacity:women" text="Spaces for Women" values="yes,no,1,2,3" />
     2091            <combo key="capacity:parent" text="Spaces for Parents" values="yes,no,1,2,3" />
     2092            <label text="See the Wiki for other capacity:[types]=*." />
     2093            <space />
     2094            <reference ref="maxstay" />
     2095            <reference ref="supervised_lit_oh" />
     2096        </item> <!-- Street-side parking -->
    20752097        <item name="Parking Space" icon="presets/vehicle/parking/parking_space.svg" type="node,closedway" preset_name_label="true">
    20762098            <link wiki="Tag:amenity=parking_space" />
    20772099            <space />