Changes between Version 27 and Version 28 of Styles/Maxspeed
- Timestamp:
- 2015-10-20T02:28:52+02:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Maxspeed
v27 v28 48 48 49 49 /* 50 50 51 table of contents 51 52 … … 129 130 130 131 /* 2.4 - read conditional maxspeed values */ 131 way["maxspeed:conditional"=~/^(none|[1-9][0-9]*) @/]::maxspeedlayer 132 way["maxspeed:conditional"=~/^(none|[1-9][0-9]*) @ /]::maxspeedlayer 132 133 { 133 134 maxsp_cond: get(split(" ", tag("maxspeed:conditional")), 0); 134 135 set cond_kmh; 135 136 } 136 way["maxspeed:forward:conditional"=~/^(none|[1-9][0-9]*) @/]::maxspeedlayer 137 way["maxspeed:forward:conditional"=~/^(none|[1-9][0-9]*) @ /]::maxspeedlayer 137 138 { 138 139 maxsp_forward_cond: get(split(" ", tag("maxspeed:forward:conditional")), 0); 139 140 set cond_forward_kmh; 140 141 } 141 way["maxspeed:backward:conditional"=~/^(none|[1-9][0-9]*) @/]::maxspeedlayer 142 way["maxspeed:backward:conditional"=~/^(none|[1-9][0-9]*) @ /]::maxspeedlayer 142 143 { 143 144 maxsp_backward_cond: get(split(" ", tag("maxspeed:backward:conditional")), 0); 144 145 set cond_backward_kmh; 145 146 } 146 way["maxspeed:conditional"=~/^[1-9][0-9]* mph @/]::maxspeedlayer 147 way["maxspeed:conditional"=~/^[1-9][0-9]* mph @ /]::maxspeedlayer 147 148 { 148 149 maxsp_cond: get(split(" ", tag("maxspeed:conditional")), 0); 149 150 set cond_mph; 150 151 } 151 way["maxspeed:forward:conditional"=~/^[1-9][0-9]* mph @/]::maxspeedlayer 152 way["maxspeed:forward:conditional"=~/^[1-9][0-9]* mph @ /]::maxspeedlayer 152 153 { 153 154 maxsp_forward_cond: get(split(" ", tag("maxspeed:forward:conditional")), 0); 154 155 set cond_forward_mph; 155 156 } 156 way["maxspeed:backward:conditional"=~/^[1-9][0-9]* mph @/]::maxspeedlayer 157 way["maxspeed:backward:conditional"=~/^[1-9][0-9]* mph @ /]::maxspeedlayer 157 158 { 158 159 maxsp_backward_cond: get(split(" ", tag("maxspeed:backward:conditional")), 0); … … 1341 1342 1342 1343 /* 6.2 - report wrong value of maxspeed:conditional */ 1343 way["maxspeed:conditional"=~/^[1-9][0-9]* knots @/]::maxspeedlayer, 1344 way["maxspeed:forward:conditional"=~/^[1-9][0-9]* knots @/]::maxspeedlayer, 1345 way["maxspeed:backward:conditional"=~/^[1-9][0-9]* knots @/]::maxspeedlayer 1344 way["maxspeed:conditional"=~/^[1-9][0-9]* knots @ /]::maxspeedlayer, 1345 way["maxspeed:forward:conditional"=~/^[1-9][0-9]* knots @ /]::maxspeedlayer, 1346 way["maxspeed:backward:conditional"=~/^[1-9][0-9]* knots @ /]::maxspeedlayer 1346 1347 { 1347 1348 set cond_knots;
