Skip to content

v0.2.51..v0.2.52 changeset tds61.js

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/translations/tds61.js b/translations/tds61.js
index f1260a1..ad11d13 100644
--- a/translations/tds61.js
+++ b/translations/tds61.js
@@ -1396,7 +1396,10 @@ tds61 = {
             ["t.golf == 'driving_range' && t.leisure == 'golf_course'","delete t.leisure"],
             ["t.highway == 'bus_stop'","t['transport:type'] = 'bus'"],
             ["t.highway == 'crossing'","t['transport:type'] = 'road';a.F_CODE = 'AQ062'; delete t.highway"],
+            ["t.highway == 'give-way'","a.F_CODE = 'AQ062'"],
             ["t.highway == 'mini_roundabout'","t.junction = 'roundabout'"],
+            ["t.highway == 'steps'","t.highway = 'footway'"],
+            ["t.highway == 'stop'","a.F_CODE = 'AQ062'"],
             ["t.historic == 'castle' && t.building","delete t.building"],
             ["t.historic == 'castle' && t.ruins == 'yes'","t.condition = 'destroyed'; delete t.ruins"],
             ["t.landcover == 'snowfield' || t.landcover == 'ice-field'","a.F_CODE = 'BJ100'"],
@@ -1756,6 +1759,16 @@ tds61 = {
             tags.location = 'underwater';
         }
 
+        // "service = parking_aisle" is actually the road between rows of car spaces.
+        // If this is a line: make it into a road - the default
+        // If this is an area: make it into a car park.
+        if (tags.service == 'parking_aisle' && geometryType == 'Area')
+        {
+            delete tags.highway;
+            delete tags.service;
+            attrs.F_CODE = 'AQ140'; // Vehicle lot / car park
+        }
+
         // Now use the lookup table to find an FCODE. This is here to stop clashes with the
         // standard one2one rules
         if (!(attrs.F_CODE) && tds61.fcodeLookup)
Clone this wiki locally