[Script] WME Validator 1.1.20 / 03.11.2016

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.

Moderators: Unholy, bextein

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

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: street name not capitalized

Postby dbraughlr » Thu Feb 27, 2014 7:09 pm

sketch wrote:A Validator check for first letter notwithstanding initial compass directions is fine ...

I am saying that this is necessary to make check #94 complete - and that checking every word against a list cannot substitute for checking the first actual word alone. So we need a list of words that are ignored at the beginning of a name ("E", "N", "S", "W", "to"). A note that false positives are theoretically possible is fine by me.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: street name not capitalized

Postby dbraughlr » Thu Feb 27, 2014 6:34 pm

kentsmith9 wrote:I saw a discrepancy between your two statements that I could not identify the correct solution.

Are you now satisfied that there is no discrepancy between my statements?
"La Cruz" gets capitalized for the same reason that "Las Cruces" is capitalized.

kentsmith9 wrote:I did not see the official list linked to what letters are supposed to be allowed in each country.

Current exceptions for the USA for first word of name:
  • to

kentsmith9 wrote:I now understand the second one if 'las' is not on the accepted list. I would then understand the first one if 'de' was not on the original displayed list.

The main point of my post was to demonstrate that allowing a word to be lowercase necessarily will fail to detect when that word should be capitalized and that the compass direction (e.g., "W de Vanter Ave") must be excluded when evaluating what is the first letter of a name.

Note to sketch: We have one (quirky) example so far in the entire USA. Programming Validator to allow some lowercase exceptions carries that trade-off that an incorrectly lowercase usage is accepted just so the rare exception won't be flagged.
Last edited by dbraughlr on Thu Feb 27, 2014 9:52 pm, edited 1 time in total.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: road junctions and crossovers

Postby dbraughlr » Thu Feb 27, 2014 10:27 am

berestovskyy wrote:No doubt those buckets will reduce number of comparisons, but add complexity. And still there are will be thousands of comparisons and the check still will be very slow.

- a few thousand comparisons - not hundreds of thousands. But if it is too slow, make the squares smaller.
When the squares are under 25 m², the algorithm approaches Ο(n) time.

berestovskyy wrote:So we're looking at quite slow and complex check here. But what's is the "goal"? Does this non-ground elevation affects TTS or routing?

I would be looking for drivable segments at the same elevation that touch or cross without forming a junction. These might look okay, but they do not route correctly.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: street name not capitalized

Postby dbraughlr » Thu Feb 27, 2014 8:45 am

kentsmith9 wrote:Why are these two an error?
"S De la Cruz Blvd" → error.
"N Via de las Cruces Hwy" → error.

1. Failure to capitalize "La" of "La Cruz".
2. Failure to capitalize "Las" of "Las Cruces".
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: road junctions and crossovers

Postby dbraughlr » Thu Feb 27, 2014 8:43 am

berestovskyy wrote:In both cases to check if a segment intersects with another, we have to compare it with every other segment on the map = very slow. Sorry, it won't be implemented unless we found another solution :(

Comparisons can be greatly pruned by segregating roads into smaller map squares. Roads which are completely confined to a small square need be checked only other roads which intersect the square it occupies. No segment needs to be checked against all others. Most segments need to be checked against only other roads in the local area.

Create buckets to divide the map into equal sized squares, say 1 km².

For each segment on the map, determine which square(s) it crosses and add it (or a portion of it) to the bucket for those square(s). Repeat until all segments are distributed to the buckets.

For each bucket, compare each segment (or portions of a segment) against all those segments in that bucket.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: street name not capitalized

Postby dbraughlr » Thu Feb 27, 2014 8:16 am

berestovskyy wrote:... IMO it's better to create new more comprehensive check with a list of allowed lowercase words (to, a, the, de, la, etc) and report any other lowercase word no matter its position in the street name.


"De La Vina St" → pass.
"Norte de La Vina St" → pass.
"E del Paso Blvd" → error.
"Van de Vanter Ave" → pass.
"W de Vanter Ave" → error.
"S De la Cruz Blvd" → error.
"N Via de las Cruces Hwy" → error.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: elevation highlighter

Postby dbraughlr » Thu Feb 27, 2014 1:29 am

irowiki wrote:I meant, search for segments that aren't set to ground level currently, but that would probably be another script!

Are you talking about Level Highlighter?
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: [Script] WME Validator 0.7.3 (BETA) / 24.02.2014

Postby dbraughlr » Wed Feb 26, 2014 10:18 pm

bz2012 wrote:Validator flags the segment with a 'turn too sharp' at the north end when that end has the restricted turn (yellow) 24/7, but passes it when the turn is forbidden (red).

Make it red. If someone makes it green, it will fail validation.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: [Script] WME Validator 0.7.3 (BETA) / 24.02.2014

Postby dbraughlr » Wed Feb 26, 2014 7:45 pm

irowiki wrote:Would also be nice to have a way to search for all elevation not set to "Ground" in an area where there are no tunnels, bridges or overpasses.

It might be nice, but Waze has no way to know this. There is nothing to validate.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

Re: [Script] WME Validator 0.7.2 (BETA) / 24.02.2014

Postby dbraughlr » Mon Feb 24, 2014 7:10 pm

berestovskyy wrote:
dbraughlr wrote:When a USA street name starts with a compass indicator [ENSW], the next word should start with a capital letter.

We can go further and check if every word in the street name starts with a capital letter. But at the moment #94 is checking just the beginning of the street name.


Negative. The rule applies only to the first letter of the first word. A compass indicator prefix is not the first word of a name.
dbraughlr
 
Posts: 569
Joined: Tue Aug 13, 2013 2:24 am
Has thanked: 164 times
Been thanked: 98 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users