Changes

From Wazeopedia

Scripts/WME Validator/Custom Checks

153 bytes added, 4 years ago
Medium Examples
To highlight Ramps with non-ground elevation:
 
<code>
Template: ${typeRank}:${elevation}
 
RegExp: /12:[^0]/
</code>
To highlight Freeways which do not start with letter A
 
<code>
Template: ${typeRank}:${street}
 
RegExp: /15:[^A]/
</code>
To highlight streets named "U-Turn" in LA
 
<code>
Template: ${state}:${street}
 
RegExp: /Louisiana:U-Turn/
</code>
To highlight dead-end U-turns
 
<code>
Template: ${deadEnd}:${Uturn}
 
RegExp: /1:1/
</code>
To highlight the opposite: missing dead-end U-turns
 
<code>
Template: ${deadEnd}:${Uturn}
 
RegExp: /1:0/
</code>
New! To highlight Freeways or Major Highways in format 'Axx', 'Ixx' etc
 
<code>
Template: ${typeRank}:${street}
 
RegExp: /^(15|14):[a-z][0-9]/i
</code>
New! To search for segments shorter than 17m:
 
<code>
Template: ${length}
 
RegExp: /^([0-9]|1[0-6])$/
</code>
New! To mark dead-ends without U-turn:
 
<code>
Template: A${deadEndA}:${UturnA}:B${deadEndB}:${UturnB}
 
RegExp: /A1:0|B1:0/
</code>
<code>
New! To highlight more than 100m long unnamed drivable streets:
 
Template: ${drivable}:${street}:${length}
 
RegExp: /1::...+/
</code>
== Advanced Examples ==
299
edits