[Script] WME Tools (WMET) v0.3.4 / 2013-12-27

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, Unholy

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: [Script] WME Mass Edit Tool (WMET)

Postby mrgrumpy » Sat Sep 14, 2013 9:34 pm

dmcconachie wrote:This isn't in question but something like this will not stay in good hands. The potential for devastation is more important than the potential for good that it has.


Obviously not deliberately, but we recently had a case of an experienced editor wiping out an area using WME tools.
mrgrumpy
Experts
Experts
 
Posts: 1048
Joined: Thu Mar 31, 2011 5:14 pm
Location: Sutton Coldfield, West Midlands
Has thanked: 59 times
Been thanked: 180 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby petervdveen » Sat Sep 14, 2013 9:46 pm

If it stays in the champs forum, then I don't see a real problem.
petervdveen
Coordinators
Coordinators
 
Posts: 9645
Joined: Wed Mar 03, 2010 4:43 pm
Location: Netherlands
Has thanked: 452 times
Been thanked: 1298 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby mrgrumpy » Sat Sep 14, 2013 9:47 pm

Its not though, is it.
mrgrumpy
Experts
Experts
 
Posts: 1048
Joined: Thu Mar 31, 2011 5:14 pm
Location: Sutton Coldfield, West Midlands
Has thanked: 59 times
Been thanked: 180 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby sketch » Sat Sep 14, 2013 9:52 pm

What it definitely shouldn't be is open source, and definitely not in here. Remove the explanations from this forum and include instructions either only in PM to champs or on the global champs forum.

And I agree that it seems too easy to mess up. Make a GUI for it and include confirmation prompts that make you type in a three-letter code before doing any big edit.


Sent from my iPhone using Tapatalk 2
ALL US EDITORS READ: New USA road type guidance
new orleans based • detroit enthusiast • usa country manager
2013 ford focus titanium hatchback 5mt • performance blue
Image Image
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5635
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1199 times
Been thanked: 1654 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby petervdveen » Sun Sep 15, 2013 5:28 am

mrgrumpy wrote:Its not though, is it.

Right now it isn't, but there also is no download link ;-)
petervdveen
Coordinators
Coordinators
 
Posts: 9645
Joined: Wed Mar 03, 2010 4:43 pm
Location: Netherlands
Has thanked: 452 times
Been thanked: 1298 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby berestovskyy » Sun Sep 15, 2013 3:51 pm

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)
{
    if(segment.isTypeOf('major'))
        segment.lock = 4;
    else if(segment.isTypeOf('freeway'))
        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.
berestovskyy
Waze Global Champs
Waze Global Champs
 
Posts: 924
Joined: Fri Jul 15, 2011 1:50 pm
Has thanked: 248 times
Been thanked: 683 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby berestovskyy » Mon Sep 16, 2013 10:00 am

sketch wrote:What it definitely shouldn't be is open source, and definitely not in here. Remove the explanations from this forum and include instructions either only in PM to champs or on the global champs forum.

The descriptions and details are removed, but I don't have an access to the champs forum, sorry.

sketch wrote:And I agree that it seems too easy to mess up. Make a GUI for it and include confirmation prompts that make you type in a three-letter code before doing any big edit.

I planed to create a per country set of scripts with your help and then in v0.3 make a GUI with just a list of those scripts. For instance, the script "segment.lock = 1" would be named as "Unlock all segments" and available for every country. The "Apply the lock map" script would be just for specific countries and for lvl 5 or 6 (per country) editors. Then the "Check street name abbreviations" etc etc.

In v0.3 I planned to make just a list of checkboxes so the editor does not edit the script, but just switch it on or off (see picture below). That was the plan...
Attachments
WMET.0.3.png
WMET.0.3.png (15.22 KiB) Viewed 1452 times
berestovskyy
Waze Global Champs
Waze Global Champs
 
Posts: 924
Joined: Fri Jul 15, 2011 1:50 pm
Has thanked: 248 times
Been thanked: 683 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby berestovskyy » Wed Sep 18, 2013 11:42 am

Here is the list of features to be implemented in v0.3. Please review it and correct me sooner rather than later ;)

Security:
- script will be reviewed by a waze champ prior to next release;
- WMET 0.3 will be compiled and encrypted, so the source code will not be available;
- the download link will be provided on request and only to: Lvl5+? champs only? YOU DEFINE IT

User interface:
- just a predefined list of fixes (see an image in my previous post);
- user will be able just to switch every fix on or off, no options;
- a fix will appear on the list if WME is positioned over a specific country and editor's level is sufficient;

Fixes/features to be available for ALL COUNTRIES:
1. Pause on highlight: WMET will pause if any of the segments is highlighted by the Toolbox or Colour Highlights (idea of paulkok_my)
2. Fix one letter city names: get the name from adjoining segments/top city.
Exceptions: http://en.wikipedia.org/wiki/List_of_short_place_names
3. Insert a space after abbreviations: 'St.X' -> 'St.[space]X' (but not at the end)
4. Unlock all segments (just to remind we're always talking about editable for the editor segments)
5. + call the Toolbox fixes by OyyoDams
6. + functionality of Node Remover by bgodette

Fixes which might be available for SOME COUNTRIES (upon the champs/CMs request):
1. Apply the lock map: lock all freeways to lvl 5, majors to lvl 4 etc.
2. Transliterate cyrillic: add an alt street with transliterated street name, i.e. 'Львів' -> 'Lviv'
3. Abbreviate: if the name is longer than predefined limit -> abbreviate according to the table
4. Correct abbreviations: expand incorrect abbreviations ('Dv' -> 'Divide'), correct the case 'st.' -> 'St.', or correct the abbreviation 'St.' (at the end) -> 'St' (street)
5. Correct road types: if the road name starts with a pattern -> set corresponding road type
For instance: 'A[digits]' -> freeway, 'O[digits]' -> primary street etc.
6. Correct some road names: 'A4 - E40' -> 'A4 / E40'
7. Correct ramp names: '... CityA, CityB' -> '... CityA / CityB'
8. Change walking trails to railroads (taking elevation -5 into account)
9. etc upon request

What do you think?
berestovskyy
Waze Global Champs
Waze Global Champs
 
Posts: 924
Joined: Fri Jul 15, 2011 1:50 pm
Has thanked: 248 times
Been thanked: 683 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby sketch » Wed Sep 18, 2013 1:37 pm

I'm interested. It should be champs only, at least in the US. There are enough L5s around whom I've never, or very rarely, seen on the forums.
ALL US EDITORS READ: New USA road type guidance
new orleans based • detroit enthusiast • usa country manager
2013 ford focus titanium hatchback 5mt • performance blue
Image Image
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5635
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1199 times
Been thanked: 1654 times

Re: [Script] WME Mass Edit Tool (WMET)

Postby HandOfMadness » Wed Sep 18, 2013 6:03 pm

sketch wrote:I'm interested. It should be champs only, at least in the US. There are enough L5s around whom I've never, or very rarely, seen on the forums.


:cry:
CM: Thailand CM: USA
Image
HandOfMadness
Area Manager
Area Manager
 
Posts: 1798
Joined: Mon Apr 16, 2012 7:44 am
Location: Californialand, USA
Has thanked: 18 times
Been thanked: 368 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users