Skip to content

v0.2.51..v0.2.52 changeset tds70.js

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/translations/tds70.js b/translations/tds70.js
index f9a516a..f968fd0 100644
--- a/translations/tds70.js
+++ b/translations/tds70.js
@@ -1218,7 +1218,10 @@ tds70 = {
             ["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'"],
@@ -1315,7 +1318,7 @@ tds70 = {
                 if (!(tags.facility = 'yes'))
                 {
                     // Debug
-                    print('Making a building: ' + tags.facility);
+                    // print('Making a building: ' + tags.facility);
                     attrs.F_CODE = 'AL013'; // Building
                 }
             }
@@ -1558,7 +1561,6 @@ tds70 = {
         {
             tags.sidetrack = 'yes';
             if (tags.railway) delete tags.railway;
-
         }
 
         // Movable Bridges
@@ -1598,9 +1600,18 @@ tds70 = {
             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) && tds70.fcodeLookup)
         {
             for (var col in tags)
@@ -2427,7 +2438,6 @@ tds70 = {
             }
 
             hoot.logTrace('FCODE and Geometry: ' + gFcode + ' is not in the schema');
-print('FCODE and Geometry: ' + gFcode + ' is not in the schema');
 
             tableName = 'o2s_' + geometryType.toString().charAt(0);
 
Clone this wiki locally