Ticket #18659: motorcar.patch

File motorcar.patch, 1.7 KB (added by nlehuby, 6 years ago)

patch

  • defaultpresets.xml

    From 2b228b081cafc03402188f533db0a4d9693e903b Mon Sep 17 00:00:00 2001
    From: nlehuby <noemie.lehuby@zaclys.net>
    Date: Mon, 3 Feb 2020 19:59:40 +0100
    Subject: [PATCH 1/2] change car to motorcar on amenity=charging_station
    
    ---
     trunk/data/defaultpresets.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/defaultpresets.xml b/defaultpresets.xml
    index c33706f..2dee335 100644
    a b  
    22902290            <checkgroup columns="4">
    22912291                <check key="bicycle" text="Bicycle" />
    22922292                <check key="scooter" text="Scooter" />
    2293                 <check key="car" text="Car" />
     2293                <check key="motorcar" text="Car" />
    22942294                <check key="truck" text="Truck" />
    22952295            </checkgroup>
    22962296            <space />
  • deprecated.mapcss

    -- 
    2.17.1
    
    
    From ce817eede0358d0cc602aa9603535d98e7a3eee0 Mon Sep 17 00:00:00 2001
    From: nlehuby <noemie.lehuby@zaclys.net>
    Date: Mon, 3 Feb 2020 20:21:23 +0100
    Subject: [PATCH 2/2] add validator to change car to motorcar on
     amenity=charging_station
    
    ---
     trunk/data/validator/deprecated.mapcss | 10 +++++++++-
     1 file changed, 9 insertions(+), 1 deletion(-)
    
    diff --git a/deprecated.mapcss b/deprecated.mapcss
    index 646d4a2..48dab78 100644
    a b way[bicycle:oneway] {  
    19161916  suggestAlternative: "min_height";
    19171917  fixChangeKey: "building:min_height => min_height";
    19181918  group: tr("deprecated tagging");
    1919 }
    1920  No newline at end of file
     1919}
     1920
     1921/* #18659 */
     1922*[car][amenity=charging_station] {
     1923  throwWarning: tr("{0} is deprecated", "{0.key}");
     1924  suggestAlternative: "motorcar";
     1925  group: tr("deprecated tagging");
     1926  fixChangeKey: "car => motorcar";
     1927}