Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
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 rottielover
TonyG-UK wrote:
davipt wrote: Setting all roads to two-ways is a no-no according to the waze wiki. If the road is direction unknown or one-way, waze will learn the right way when people drive there. If you manually set the road to two-way, one-way roads will become two-way and people will be directed there against traffic.
Ah.... that old fallacy.

BTW, where in the wiki does it say that?
I too would like to know, I have not found that in the Wiki.

I did however find this: http://www.waze.com/wiki/index.php/Auto ... g_of_roads

Which advises, in part: "...It will change the directionality of a road, enable turns, and reportedly it will change the geometry or layout of a road.
This can cause map errors, especially in areas where there are few wazers. One wazer who always travels one way down a road may change a correctly recorded two-way road into one-way."

and I'm currently talking about small towns, where there are few wazers.

Edit : side note, I'm not one of those on a "points quest". I want waze to work correctly when I go driving out to these small towns and rual area's just as well as it works in the big cities. In a way I feel fortunate, because I have been granted my AM area that covers a big city and many rual and small towns. The whole reason I became a map editor was to improve the user experience around my area.
rottielover
Area Manager
Area Manager
Posts: 261
Has thanked: 14 times
Been thanked: 19 times
Send a message
Last edited by rottielover on Fri Jan 11, 2013 3:34 pm, edited 1 time in total.
[img]https:///9EKWfE[/img] [img]https:///ubk1Zx[/img]
Wiki Resources: Map Editing | To Do - St. Louis MO
To Do - Missouri | Missouri Mapping Resources | Missouri Forum

Post by rottielover
davipt wrote:
TonyG-UK wrote:
davipt wrote: Setting all roads to two-ways is a no-no according to the waze wiki. If the road is direction unknown or one-way, waze will learn the right way when people drive there. If you manually set the road to two-way, one-way roads will become two-way and people will be directed there against traffic.
Ah.... that old fallacy.

BTW, where in the wiki does it say that?
What do you mean fallacy? No of course I can't find the exact sentence on the wiki, or the forum, but isn't it well known that streets do change from unknown to one-way and to two-way, but will never ever be able to learn and switch back from two-way to one-way? Also routes will prefer segments manually set to two-way over segments marked as unknown?
Please see my post above, according to the page I linked in the wiki, Two-Way roads can be changed to one way, if wazers always drive down the same way. (possible in these small towns)

As far as routing, the engine's choosing is dependent on more factors, but I can tell you from experience of using the Livemap to test routing I've seen the engine prefer an unknown direction "street" before (this was in a downtown area and the routing was taking people down an Alley that was basemapped incorrectly as a street. It's since been corrected. But there are many factors like origin point, destination point, and all segments between.
rottielover
Area Manager
Area Manager
Posts: 261
Has thanked: 14 times
Been thanked: 19 times
Send a message
Last edited by rottielover on Fri Jan 11, 2013 3:43 pm, edited 1 time in total.
[img]https:///9EKWfE[/img] [img]https:///ubk1Zx[/img]
Wiki Resources: Map Editing | To Do - St. Louis MO
To Do - Missouri | Missouri Mapping Resources | Missouri Forum

Post by rottielover
davipt wrote:
rottielover wrote:http://www.waze.com/wiki/index.php/Auto ... g_of_roads

Which advises, in part: "...It will change the directionality of a road, enable turns, and reportedly it will change the geometry or layout of a road.
This can cause map errors, especially in areas where there are few wazers. One wazer who always travels one way down a road may change a correctly recorded two-way road into one-way."
I was once curious about this one so we have setup a certain remote and not used one-way segment as two-way and have, two guys, driven there every day for some weeks to test it. It never changed to one-way. It may apply if the road becomes automatically two-ways because of people driving both ways, and later become one-way if people starts driving only one way, but after setting it manually to two ways it never changed. And obviously it wasn't locked.

Anyway we're not arguing against each other here, if we are all in this thread we all surely know the power of this script and the amazing help it provides, as well as dangerous damages it can potentially do. And I see no issues for a entire small town to be set as two-ways (even all directions), and I have plenty of cases like those, but personally I do prefer people to drive there and have waze automatically learn the directions and the position of the road. Mostly because of lazyness and having other more important fixes to do ;)
Agreed, I don't feel this is an "argument", I enjoy discussion, I try and learn something new everyday!

Example, today I found out what the NbWays column was :) (btw, Is there more documentation somewhere?)

The other thing to keep in mind as well is that the map needs to function. In a few of these towns I was getting "crazy" routing, because the basemap import was just "all jacked up" (no other term for it)...

Thanks all!
rottielover
Area Manager
Area Manager
Posts: 261
Has thanked: 14 times
Been thanked: 19 times
Send a message
[img]https:///9EKWfE[/img] [img]https:///ubk1Zx[/img]
Wiki Resources: Map Editing | To Do - St. Louis MO
To Do - Missouri | Missouri Mapping Resources | Missouri Forum

Post by rottielover
davipt wrote: or then filter by each speed and see areas where people surely cross the limits. o.O
Why does that matter?
rottielover
Area Manager
Area Manager
Posts: 261
Has thanked: 14 times
Been thanked: 19 times
Send a message
[img]https:///9EKWfE[/img] [img]https:///ubk1Zx[/img]
Wiki Resources: Map Editing | To Do - St. Louis MO
To Do - Missouri | Missouri Mapping Resources | Missouri Forum

Post by skbun
Can someone please sticky this thread, putting it at the top of the editing forum? Thanks!
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
iainhouse wrote:
davipt wrote:Any idea why this script, as well as the latest version of the original ext-tools, fails since the new editor on the use case I need the most:
- create a new landmark
- script->select all in landmark
- script->properties
- script->change city name
- save

always fails to save :(

I urgently need to do some mass cityname changes now that city areas are being updated again... :|
I'm pretty sure it's because of un-named segments. If I'm careful not to select any of those, the problem generally goes away.

In principal, I think I'm in favour of this. I have seen large towns where all the segments (including the roundabouts) have the city name set but none of the segments have road names. To me, that suggests someone looking for the big-points edit without doing the hard work of naming the streets. But it would be nice if the tool could, when modifying the city name on a large batch of segments, simply ignore all segments with no street name instead of giving an error.
Here's a workaround to deal with this (faster) until it's fixed in add-ons:

1. Enable the 'StreetNames' and 'city' column in Add-ons. Go to the area you want to edit, and refresh the segment list.
2. Look for the row which has nothing in it. This is the roads without a name.
3. Click the 'select' button.
4. Now, use WME itself (NOT the Add-ons edit tool) to assign a city/state/country to the unnamed road segments.
5. Save.
6. Now that all the unnamed segments are 'out of the way', enable ONLY the 'city' column, which will allow you to change the rest of the segments - but this time, using the Add-ons edit tool.

It's a little ugly, but it's a lot faster than having to pick around finding and unselecting unnamed roads manually.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
gdu1971 wrote: Yes it is quite easy to do but,
is it not better to have a drop down box to select one of the available existing state in order to not create wrong state names and so ?
I think this might be applicable also for CityNames.
It's quite easy to create a new city or state through the standard editor
Mostly. But states and countries are attached to cities. So first off, I would say 'there should never be a 'state' or 'country' dropdown in segment editing'.

Ideally what I'd like 'City' edit to do is to get cityIDs in view, translate them to names (because a cityID has an associated country and possibly state in the U.S.), and that's it. States and countries shouldn't be 'selectable' from there, because cities carry the backend data.

The tool should not be able to create new cities.

EDIT: If you would like to see a good routine to translate a cityID to a comma separated series of names (based on what's in view), please see the highlighter script - specifically, http://waze.cryosphere.co.uk/scripts/wm ... ights.html. This work has basically already been done.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
jwkilgore wrote:If I could create a temporary large landmark, select all in it, and change all states to the correct state, this would greatly speed up the task.
It's a good thought, but unfortunately, it wouldn't work. I'll explain why...

You can't see 'all roads' until you're zoomed into zoom level 4, as you know. A landmark bigger than your current view (which is 2048x2048) just wouldn't have the scope to select segments outside the current view that you have.

The biggest view you can get that will select all segments is about 9 square miles. Here's how to do that, jwk:

http://www.waze.com/forum/viewtopic.php ... 53#p335453

The problem is that to fix this properly, you'd need to be able to 'select all streets with state X (which you can do), and change all CityIDs to Y (which you cannot - yet - when that cityID is something involving a null - in this case, 'No city, Louisiana'.) The WME segment editor itself will let you change a city and state in this batch way, but you'd have to wipe all your street names in the process because it demands a street.

If gdu implements the city select I talked about in my previous post, I think you could do it.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
gdu1971 wrote:The script already translate all cities in a list with the "autocomplete" feature.
Put it in a select should not be so difficult.
Unless it doesn't work on your countries?
Take a look at the code you will see how to get the list in a clean array in one line of code...
As my country does not have states, I didn't check the consequences of doing such action for now
Right...the issue is that what jwk wants to do is to set a cityID to something with a name of "", which can't autocomplete. Specifically, 99999xx, which is what Waze assigns in the U.S. to 'No city, STATE'. Additionally, there's a bogus cityID that comes up in autocomplete with an ID of 1000000XX, which should never be used. It's...well, let's just say it took a lot of work to get all this right. Again, I suggest checking out the highlighter script. There are comments inside that explain. I'll PM you the code, and the full context is in the script.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
Currently, using the 'select' button in 'Segment list' will select all segments in view, whether or not you have permission to actually modify them. Could you please modify this routine to add a test for seg.isAllowed(seg.PERMISSIONS.DELETE)), as you do for surpressing junctions?

If you are near the border of your editing rights and need to make changes there - or are near segments with locks higher than your editing level, this will mean that only segments will be selected that you actually have permission to work with.

If for some reason someone needed to select all segments regardless of permissions (I can't imagine why, but let's say they did), this can be done in play mode.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA