Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.
Post by BellHouse
berestovskyy wrote:1. No road continuation (for Primary Streets and up)
2. No right* turn (for any drivable road)
3. Geometry points are too close (for any drivable road)
1. and 3. seem ok for me.

I don't get the idea behind 2. You want to mark all right/left turns that are disabled (red arrow)? What's so special about a turn of around 90° angle? :?
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
qwaletee wrote:
BellHouse wrote:
berestovskyy wrote:2. No right* turn (for any drivable road)
I don't get the idea behind 2. You want to mark all right/left turns that are disabled (red arrow)? What's so special about a turn of around 90° angle? :?
I think the idea is that while it is common to restrict left turns, it is uncommon to restrict right turns, unless there is a very sharp angle.
Ok, now I got it, thanks for your explanations.

I'd say we give it a try. If

1. the offset from 90° angle, and
2. the minimum length of one of the segments

were parameters to the new check, this could be fine-tuned in each country. Since we might expect some false-positives from this check (which we do not think of now), it might be a good idea to implement the check and have it disabled by default. Then the mass of editors will not be bothered by the false-positives, and some of us testers could turn it on manually.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
How do you define invalid elevation?
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
Yes, I am just trying to find out if lg1992 means the same thing as we did earlier.

Anyway, the template would be ${elevation} and the regexp would be !\-[1-5]|^[0-9]$ , if you want to test if the elevation is outside of -5 and 9. And I trust you would manage to tune that to a range you are looking for.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
sketch wrote:Is there a way to change the severity of a custom check from Note? I don't see one in the Wizard example.
There are some nice instructions in this post.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
Maybe we are talking about different checks, but this piece of code works fine for me just now:

Code: Select all

  "130.enabled": true,
  "130.severity": "warning",
  "130.params": {
    "titleEN": "Segment with alternative name",
    "solutionEN": "Delete the alternative name(s)",
    "problemEN": "The segment has at least one alternative name",
    "template": "${altStreet[0]}",
    "regexp": "^.+$"
  },
(I left away the localized parameters in my example)

If you put this into a localization script, the severity setting will only become active if you set WME to the correct language (so it won't if WME is set to English). On an english WME the same custom check will be a note, so one might call that part a bug, yes.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
Yes, I think we mean the same thing. It doesn't work for English, but it does work for all other languages.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
Please keep in mind that this is a thread about WME Validator.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message

Post by BellHouse
You can add the following custom check:

Template:

Code: Select all

${street}
Custom RegExp:

Code: Select all

[A-Z][0-9]{3}
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message
Last edited by BellHouse on Thu Apr 24, 2014 5:17 am, edited 1 time in total.

Post by BellHouse
I don't quite understand why E773 is continuing through the roundabout? This is not visible in the sat pic, nor in GMaps, nor in OSM.
BellHouse
EmeritusChamps
EmeritusChamps
Posts: 3977
Has thanked: 404 times
Been thanked: 2144 times
Send a message