Changes between Version 5 and Version 6 of Presets/ParkingLanes


Ignore:
Timestamp:
2018-02-18T07:21:17+01:00 (8 years ago)
Author:
Alexander-II
Comment:

Refactoring: chunks, Russian translation, capacity for disabled, https URL, key matching, code clean up. More to come.

Legend:

Unmodified
Added
Removed
Modified
  • Presets/ParkingLanes

    v5 v6  
    11{{{
    2 #!preset
    32<?xml version="1.0" encoding="utf-8"?>
    43<presets
    5     xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
    6     version="1.[[revision]]_[[date]]"
    7     author="Sebastian Klemm, Kay Drangmeister"
    8     link="http://wiki.openstreetmap.org/wiki/Key:parking:lane"
    9     shortdescription="Parking lanes"
    10     de.shortdescription="Parkstreifen"
    11     description="Parking lanes along roads and parking/stopping restrictions"
    12     de.description="Parkstreifen/Parkplätze entlang von Straßen und Park-/Halteverbote"
    13     >
     4  xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
     5  version="1.1.[[revision]]_[[date]]"
     6  author="Sebastian Klemm, Kay Drangmeister, Alexander-II"
     7  link="https://wiki.openstreetmap.org/wiki/Key:parking:lane"
     8  ru.link="https://wiki.openstreetmap.org/wiki/RU:Key:parking:lane"
     9  shortdescription="Parking lanes"
     10  de.shortdescription="Parkstreifen"
     11  ru.shortdescription="Парковка вдоль дороги"
     12  description="Parking lanes along roads and parking/stopping restrictions"
     13  de.description="Parkstreifen/Parkplätze entlang von Straßen und Park-/Halteverbote"
     14  ru.description="Парковка вдоль дорог/ограничения и запреты у такой парковки">
    1415
    15     <group name="Parking lanes" de.name="Parkstreifen" icon="presets/vehicle/parking/parking.svg">
    16         <item name="same on both sides of street" de.name="beide Straßenseiten gleich" icon="presets/vehicle/parking/parking.svg" type="way">
    17             <label text="Parking lanes" de.text="Parkstreifen entlang von Straßen" />
    18             <combo text="space type" de.text="Art und Anordnung" key="parking:lane:both" values="parallel,diagonal,perpendicular,marked,no_parking,no_stopping,fire_lane" de.display_values="längs,diagonal,quer,markiert,Parkverbot,Halteverbot,Feuerwehrspur" delete_if_empty="true" />
    19             <combo text="condition" de.text="Bedingungen" key="parking:condition:both" values="free,disc,ticket,customers,residents,private" de.display_values="kostenlos,Parkscheibe,Parkschein/-gebühr,nur Kunden,nur Anwohner,privat" delete_if_empty="true" />
    20             <optional>
    21                 <combo text="maxstay" de.text="max. Parkzeit" key="parking:condition:both:maxstay" values="15 min,30 min,1 h,2 h,3 h" delete_if_empty="true" />
    22                 <text text="time interval" de.text="Gültigkeits-Zeitraum" key="parking:condition:both:time_interval" delete_if_empty="true" />
    23                 <text text="capacity (each side)" de.text="Kapazität (pro Seite)" key="parking:condition:both:capacity" delete_if_empty="true" />
    24                 <text text="residents permit ref" de.text="Parkausweis-Bezeichnung (ref)" key="parking:condition:both:residents" delete_if_empty="true" />
    25                 <text text="customers of" de.text="Kunden von" key="parking:condition:both:customers" delete_if_empty="true" />
    26             </optional>
    27             <link href="http://wiki.openstreetmap.org/wiki/Proposed_features/parking:lane" />
    28         </item>
     16<!-- TODO
     17    1. Сделать подгруппу с 9 записями Parking position, которые будут матчиться по наличию соответствующего тега: left/right/both:parallel, diagonal or perpendicular
     18    2. Type of vehicles. Сделать мультивыбором.
     19  -->
    2920
    30         <item name="different on both sides of street" de.name="beide Straßenseiten unterschiedlich" icon="presets/vehicle/parking/parking.svg" type="way">
    31             <label text="Parking lanes" de.text="Parkstreifen entlang von Straßen" />
    32             <space />
    33             <label text="Right side of street" de.text="Rechte Straßenseite" />
    34             <combo text="space type" de.text="Art und Anordnung" key="parking:lane:right" values="parallel,diagonal,perpendicular,marked,no_parking,no_stopping,fire_lane" de.display_values="längs,diagonal,quer,markiert,Parkverbot,Halteverbot,Feuerwehrspur" delete_if_empty="true" />
    35             <combo text="condition" de.text="Bedingungen" key="parking:condition:right" values="free,disc,ticket,customers,residents,private" de.display_values="kostenlos,Parkscheibe,Parkschein/-gebühr,nur Kunden,nur Anwohner,privat" delete_if_empty="true" />
    36             <optional>
    37                 <combo text="maxstay" de.text="max. Parkzeit" key="parking:condition:right:maxstay" values="15 min,30 min,1 h,2 h,3 h" delete_if_empty="true" />
    38                 <text text="time interval" de.text="Gültigkeits-Zeitraum" key="parking:condition:right:time_interval" delete_if_empty="true" />
    39                 <text text="capacity" de.text="Kapazität" key="parking:condition:right:capacity" delete_if_empty="true" />
    40                 <text text="residents permit ref" de.text="Parkausweis-Bezeichnung (ref)" key="parking:condition:right:residents" delete_if_empty="true" />
    41                 <text text="customers of" de.text="Kunden von" key="parking:condition:right:customers" delete_if_empty="true" />
    42             </optional>
    43             <space />
    44             <space />
    45            
    46             <label text="Left side of street" de.text="Linke Straßenseite" />
    47             <combo text="space type" de.text="Art und Anordnung" key="parking:lane:left" values="parallel,diagonal,perpendicular,marked,no_parking,no_stopping,fire_lane" de.display_values="längs,diagonal,quer,markiert,Parkverbot,Halteverbot,Feuerwehrspur" delete_if_empty="true" />
    48             <combo text="condition" de.text="Bedingungen" key="parking:condition:left" values="free,disc,ticket,customers,residents,private" de.display_values="kostenlos,Parkscheibe,Parkschein/-gebühr,nur Kunden,nur Anwohner,privat" delete_if_empty="true" />
    49             <optional>
    50                 <combo text="maxstay" de.text="max. Parkzeit" key="parking:condition:left:maxstay" values="15 min,30 min,1 h,2 h,3 h" delete_if_empty="true" />
    51                 <text text="time interval" de.text="Gültigkeits-Zeitraum" key="parking:condition:left:time_interval" delete_if_empty="true" />
    52                 <text text="capacity" de.text="Kapazität" key="parking:condition:left:capacity" delete_if_empty="true" />
    53                 <text text="residents permit ref" de.text="Parkausweis-Bezeichnung (ref)" key="parking:condition:left:residents" delete_if_empty="true" />
    54                 <text text="customers of" de.text="Kunden von" key="parking:condition:left:customers" delete_if_empty="true" />
    55             </optional>
    56             <link href="http://wiki.openstreetmap.org/wiki/Proposed_features/parking:lane" />
    57         </item>
    58     </group>
     21  <chunk id="parking_space_types">
     22    <list_entry value="parallel" de.display_value="längs" ru.display_value="параллельная" short_description="parallel to the road" />
     23    <list_entry value="perpendicular" de.display_value="quer" ru.display_value="перпендикулярная" short_description="at a right angle; i.e., the front or back of the vehicle pointing straight towards the road center line" />
     24    <list_entry value="diagonal" de.display_value="diagonal" ru.display_value="диагональная" short_description="diagonally; a.k.a. angle parking or echelon parking" />
     25    <list_entry value="marked" de.display_value="markiert" ru.display_value="согласно разметке" short_description="parking spaces available that are individually marked" />
     26    <list_entry value="no_parking" de.display_value="Parkverbot" ru.display_value="парковка запрещена" short_description="may stop, though, to for example pick up/drop off a passenger, unload cargo or for other reasons as laid out in the local legislation" />
     27    <list_entry value="no_stopping" de.display_value="Halteverbot" ru.display_value="остановка запрещена" />
     28    <list_entry value="fire_lane" de.display_value="Feuerwehrspur" ru.display_value="пожарная полоса" short_description="In countries where such exist, an extra sign indicating a lane that must be kept clear for possible fire engines, or other emergency vehicles" />
     29  </chunk>
     30  <chunk id="parking_condition_list">
     31    <list_entry value="free" de.display_value="kostenlos" ru.display_value="бесплатная" />
     32    <list_entry value="ticket" de.display_value="Parkschein/-gebühr" ru.display_value="квитанция (платная)" />
     33    <list_entry value="disc" de.display_value="Parkscheibe" ru.display_value="диск (ограничена по времени)" />
     34    <list_entry value="residents" de.display_value="nur Anwohner" ru.display_value="резидентное разрешение" />
     35    <list_entry value="private" />
     36    <list_entry value="customers" />
     37  </chunk>
     38
     39  <group name="Parking lanes" de.name="Parkstreifen" ru.name="Парковка вдоль дороги" icon="presets/vehicle/parking/parking.svg">
     40    <item name="Same on both sides of street" de.name="beide Straßenseiten gleich" ru.name="Одинакова на обеих сторонах" icon="presets/vehicle/parking/parking.svg" type="way" preset_name_label="true">
     41      <space />
     42      <combo text="Space type" de.text="Art und Anordnung" ru.text="Тип парковки" key="parking:lane:both" match="key">
     43        <reference ref="parking_space_types" />
     44      </combo>
     45      <combo text="Condition" de.text="Bedingungen" ru.text="Разрешение на парковку" key="parking:condition:both" match="key">
     46        <reference ref="parking_condition_list" />
     47      </combo>
     48      <optional>
     49        <combo text="Maxstay" de.text="max. Parkzeit" ru.text="Макс. время стоянки" key="parking:condition:both:maxstay" values="15 min,30 min,1 h,2 h,3 h" values_sort="false" />
     50        <combo text="Time interval" de.text="Gültigkeits-Zeitraum" ru.text="Время действия парковки" key="parking:condition:both:time_interval" values="24/7,Mo-Su 12:00-14:00,Mo-Fr 00:00-24:00,Su 20:00-06:00,Mo-Fr 09:00-20:00; Sa-Su 09:00-14:00" />
     51        <text text="Capacity (each side)" de.text="Kapazität (pro Seite)" ru.text="Вместимость (на каждой стороне)" key="parking:condition:both:capacity" />
     52        <text text="Capacity for Disabled (each side)" ru.text="Вместимость (инвалиды, на каждой стороне)" key="parking:condition:both:capacity:disabled" />
     53        <text text="Residents permit ref" de.text="Parkausweis-Bezeichnung (ref)" ru.text="Категория (ref) резидентного разрешения" key="parking:condition:both:residents" />
     54        <text text="Customers of" de.text="Kunden von" ru.text="Для клиентов заведения" key="parking:condition:both:customers" />
     55      </optional>
     56      <link href="https://wiki.openstreetmap.org/wiki/Key:parking:lane"
     57        ru.href="https://wiki.openstreetmap.org/wiki/RU:Key:parking:lane"/>
     58    </item>
     59    <item name="Different on each side of street" de.name="beide Straßenseiten unterschiedlich" ru.name="Различна на каждой стороне" icon="presets/vehicle/parking/parking.svg" type="way" preset_name_label="true">
     60      <space />
     61      <label text="Right side:" de.text="Rechte Straßenseite:" ru.text="По правую сторону:" />
     62      <space />
     63      <combo text="Space type" de.text="Art und Anordnung" ru.text="Тип парковки" key="parking:lane:right" match="key">
     64        <reference ref="parking_space_types" />
     65      </combo>
     66      <combo text="Condition" de.text="Bedingungen" ru.text="Разрешение на парковку" key="parking:condition:right" match="key">
     67        <reference ref="parking_condition_list" />
     68      </combo>
     69      <optional>
     70        <combo text="Maxstay" de.text="max. Parkzeit" ru.text="Макс. время стоянки" key="parking:condition:right:maxstay" values="15 min,30 min,1 h,2 h,3 h" values_sort="false" />
     71        <combo text="Time interval" de.text="Gültigkeits-Zeitraum" ru.text="Время действия парковки" key="parking:condition:right:time_interval" values="24/7,Mo-Su 12:00-14:00,Mo-Fr 00:00-24:00,Su 20:00-06:00,Mo-Fr 09:00-20:00; Sa-Su 09:00-14:00" />
     72        <text text="Capacity" de.text="Kapazität" key="parking:condition:right:capacity" />
     73        <text text="Capacity for Disabled" ru.text="Вместимость (инвалиды)" key="parking:condition:right:capacity:disabled" />
     74        <text text="Residents permit ref" de.text="Parkausweis-Bezeichnung (ref)" ru.text="Категория (ref) резидентного разрешения" key="parking:condition:right:residents" />
     75        <text text="Customers of" de.text="Kunden von" ru.text="Для клиентов заведения" key="parking:condition:right:customers" />
     76      </optional>
     77      <item_separator />
     78      <label text="Left side:" de.text="Linke Straßenseite:" ru.text="По левую сторону:" />
     79      <space />
     80      <combo text="Space type" de.text="Art und Anordnung" ru.text="Тип парковки" key="parking:lane:left" match="key">
     81        <reference ref="parking_space_types" />
     82      </combo>
     83      <combo text="Condition" de.text="Bedingungen" ru.text="Разрешение на парковку" key="parking:condition:left" match="key">
     84        <reference ref="parking_condition_list" />
     85      </combo>
     86      <optional>
     87        <combo text="Maxstay" de.text="max. Parkzeit" ru.text="Макс. время стоянки" key="parking:condition:left:maxstay" values="15 min,30 min,1 h,2 h,3 h" values_sort="false" />
     88        <combo text="Time interval" de.text="Gültigkeits-Zeitraum" ru.text="Время действия парковки" key="parking:condition:left:time_interval" values="24/7,Mo-Su 12:00-14:00,Mo-Fr 00:00-24:00,Su 20:00-06:00,Mo-Fr 09:00-20:00; Sa-Su 09:00-14:00" />
     89        <text text="Capacity" de.text="Kapazität" key="parking:condition:left:capacity" />
     90        <text text="Capacity for Disabled" ru.text="Вместимость (инвалиды)" key="parking:condition:left:capacity:disabled" />
     91        <text text="Residents permit ref" de.text="Parkausweis-Bezeichnung (ref)" ru.text="Категория (ref) резидентного разрешения" key="parking:condition:left:residents" />
     92        <text text="Customers of" de.text="Kunden von" ru.text="Для клиентов заведения" key="parking:condition:left:customers" />
     93      </optional>
     94      <link href="https://wiki.openstreetmap.org/wiki/Key:parking:lane"
     95        ru.href="https://wiki.openstreetmap.org/wiki/RU:Key:parking:lane"/>
     96    </item>
     97  </group>
    5998</presets>
    6099}}}