-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.51..v0.2.52 changeset tds40.js
Garret Voltz edited this page Jan 15, 2020
·
1 revision
diff --git a/translations/tds40.js b/translations/tds40.js
index 8e254eb..f530ab0 100644
--- a/translations/tds40.js
+++ b/translations/tds40.js
@@ -1394,11 +1394,12 @@ tds40 = {
["t.construction && t.railway","t.railway = t.construction; t.condition = 'construction'; delete t.construction"],
["t.control_tower && t.man_made == 'tower'","delete t.man_made"],
["t.diplomatic && t.amenity == 'embassy'","delete t.amenity"],
- ["t.highway == 'stop'","a.F_CODE = 'AQ062'"],
- ["t.highway == 'give-way'","a.F_CODE = 'AQ062'"],
["t.highway == 'bus_stop'","t['transport:type'] = 'bus'"],
- ["t.highway == 'mini_roundabout'","t.junction = 'roundabout'"],
["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'"],
@@ -1749,6 +1750,16 @@ tds40 = {
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) && tds40.fcodeLookup)