petervdveen wrote:Nxxx roads should be minor for example.
Of Major roads locked at lv4, freeway at lv5.
Try the following code:
- Code: Select all
if('Belgium' == segment.country)
segment.lock = 4;
segment.lock = 5;
if(-1 != segment.street.search(/^N\d+[a-zA-Z]?\b/))
segment.type = 'minor';
It will lock and change the type in one run. If a road name starts with a capital N following by few digits and one optional letter at the end then the road type will be changed to Minor Highway if I get you correctly.
Please double check the changes.