[Script] WME AltCity v.20190901.1

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, Glodenox, JustinS83

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 AltCity v.20180807.1

Postby buchet37 » Fri Aug 24, 2018 2:28 pm

Hello,
I was faced to the same problems and I found a solution for it.

Thanks to vtnerd91 who show me the way to "Waze/Action/UpdateFeatureAddress" here
And I do the same thing for "Waze/Action/AddAlternateStreet".
In fact, there is no need to use "addorgetcity" and "addorgetstreet".
All is included in the new functions

Code: Select all
var WazeActionAddAlternateStreet = require("Waze/Action/AddAlternateStreet");
var WazeActionUpdateFeatureAddress =  require("Waze/Action/UpdateFeatureAddress");

function add_Alternative_Street (sel, country_ID, state_ID,city_Name, street_Name) {
  var attr = {
     countryID: country_ID,
     stateID: state_ID,
     cityName: city_Name,
     emptyCity: (city_Name==''),
     streetName: street_Name,
     emptyStreet: (street_Name=='')
  };
  return new WazeActionAddAlternateStreet(sel, attr,{ streetIDField: "streetIDs"});
}

W.model.actionManager.add (add_Alternative_Street(sel,city.attributes.countryID,city.attributes.stateID,cityName,streetName));
   
   
function changeStreetAdress (sel, country_ID, state_ID,city_Name, street_Name) {
  var attr = {
    countryID: country_ID,
    stateID: state_ID,
    cityName: city_Name,
    emptyCity: (city_Name==''),
    streetName: street_Name,
    emptyStreet: (street_Name=='')
  };
   return new WazeActionUpdateFeatureAddress(sel, attr,{ streetIDField: "primaryStreetID"});
}

W.model.actionManager.add(changeStreetAdress (sel, city.attributes.countryID, city.attributes.stateID,city.attributes.name, newName));
Waze Global Champs - Country Manager France - Area Manager Touraine
2M edits - 5000UR - Iphone 6- Waze 4.0.1.1
Scripts :WME Select Same Type Roads | WME Check Road Name | PM
buchet37
Waze Global Champs
Waze Global Champs
 
Posts: 1058
Joined: Sat May 21, 2011 6:31 am
Location: Touraine
Has thanked: 185 times
Been thanked: 312 times

Re: [Script] WME AltCity v.20180824.1

Postby russblau » Fri Aug 24, 2018 6:55 pm

Thanks! I had independently come up with a similar, but different, solution to the problem. The new version 20180824.1 is now available on GreasyFork.
[ img ] [ img ] [ img ] [ img ]
MAR MSM; State Manager: District of Columbia
AM Sussex County, DE/Westchester/Putnam/Rockland Counties, NY
russblau
State Manager
State Manager
 
Posts: 1458
Joined: Fri Oct 19, 2012 11:36 pm
Has thanked: 286 times
Been thanked: 632 times

Re: [Script] WME AltCity v.20180824.1

Postby buchet37 » Mon Aug 27, 2018 8:01 pm

From my side, I have solved my problems and I see that it's the same thing for you.
I check this topic about a script which use some similar functions than CRN (but it's in french ;))
We are few to use directs modifications by scripts in WME, perhaps we will need some helps in the future ;)
Waze Global Champs - Country Manager France - Area Manager Touraine
2M edits - 5000UR - Iphone 6- Waze 4.0.1.1
Scripts :WME Select Same Type Roads | WME Check Road Name | PM
buchet37
Waze Global Champs
Waze Global Champs
 
Posts: 1058
Joined: Sat May 21, 2011 6:31 am
Location: Touraine
Has thanked: 185 times
Been thanked: 312 times

Re: [Script] WME AltCity v.20180825.1

Postby juliansean » Wed Feb 27, 2019 11:26 am

The latest WME update seems to have broken your script. It is very valuable, so I hope you have time to get it back up and running. Thank you.

Sean
Sean Julian
MSM: TX, LA, MS, AR, OK
AM: Southeast FL, Boston, MA, Bronx, NY, Manhattan, NY, Queens, NY, Eastern California, Southwest KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 914
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 446 times
Been thanked: 283 times

Re: [Script] WME AltCity v.20190227.1

Postby russblau » Wed Feb 27, 2019 4:17 pm

juliansean wrote:The latest WME update seems to have broken your script. It is very valuable, so I hope you have time to get it back up and running. Thank you.


✅ Done; new version 20190227.1 now available.
[ img ] [ img ] [ img ] [ img ]
MAR MSM; State Manager: District of Columbia
AM Sussex County, DE/Westchester/Putnam/Rockland Counties, NY
russblau
State Manager
State Manager
 
Posts: 1458
Joined: Fri Oct 19, 2012 11:36 pm
Has thanked: 286 times
Been thanked: 632 times

Re: [Script] WME AltCity v.20190227.1

Postby juliansean » Wed Feb 27, 2019 4:34 pm

Thank you so much!

Sean
Sean Julian
MSM: TX, LA, MS, AR, OK
AM: Southeast FL, Boston, MA, Bronx, NY, Manhattan, NY, Queens, NY, Eastern California, Southwest KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 914
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 446 times
Been thanked: 283 times

Re: [Script] WME AltCity v.20190227.1

Postby pcbman » Mon Apr 29, 2019 12:09 pm

I have a suggestion/idea that might make it easier to use and save some problems. I recently had a few streets change direction on me while using the alt city script. It turned out that I didn't realize the cursor was not in the field after clicking the alt city link. I started to spell the city and the keyboard shortcut keys were active and it changed street directions on me. (Zirconia) was the city name an when I hit the "r" it went from 2 direction to A>B. Would it be possible to change the script so that when you click the alt city link that the focus goes to the field you are going to type the city in, that makes sense since it's why you clicked on it in the first place. Great script by the way. Very useful for changing multiple segments at once.
[ img ][ img ][ img ]
SAT-SC AM/SER-GA AM
pcbman
 
Posts: 9
Joined: Sat Feb 09, 2019 11:05 am
Location: Pendleton, SC, USA
Has thanked: 12 times
Been thanked: 5 times

Re: [Script] WME AltCity v.20190429.1

Postby russblau » Mon Apr 29, 2019 5:33 pm

Done in v.20190429.1.
[ img ] [ img ] [ img ] [ img ]
MAR MSM; State Manager: District of Columbia
AM Sussex County, DE/Westchester/Putnam/Rockland Counties, NY
russblau
State Manager
State Manager
 
Posts: 1458
Joined: Fri Oct 19, 2012 11:36 pm
Has thanked: 286 times
Been thanked: 632 times

Re: [Script] WME AltCity v.20190429.1

Postby pcbman » Tue Apr 30, 2019 2:34 pm

THANKS!!!
[ img ][ img ][ img ]
SAT-SC AM/SER-GA AM
pcbman
 
Posts: 9
Joined: Sat Feb 09, 2019 11:05 am
Location: Pendleton, SC, USA
Has thanked: 12 times
Been thanked: 5 times

Re: [Script] WME AltCity v.20190501.1

Postby juliansean » Sun May 05, 2019 4:21 pm

Nice addition. I have had the change issue too, but @pcbman figured out the words to use! Nice job.

Sean
Sean Julian
MSM: TX, LA, MS, AR, OK
AM: Southeast FL, Boston, MA, Bronx, NY, Manhattan, NY, Queens, NY, Eastern California, Southwest KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 914
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 446 times
Been thanked: 283 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: ramblinwreck_81, Twister-UK