Dear enthusiast ROADERS,
and dear Local Guides,
I want to share with you all a small tool I have thought and created to help me reaching the incredible limit of 100.000 new edited roads.
I do really like adding / editing new roads on Google Maps but, for those who are adding more than few roads a week, it is evident that the system is not “designed for this”.
When you are - you want - adding 50, 100, 500 or more roads in a row to Google Maps you have to submit one after the other and the procedure requires
You have to select Road Type, then Done, Submit, Done, “Hamburger” Edit the Map, Add or Fix a Road, Add a Road…
Can happen that you do not hit the target with the mouse (simply you clicked too soon or near your target) and you have to restart. It is really time consuming and really tedious !!!
Since when I joined the TRAC campaign (join us) and officially started editing roads I was thinking to use a sort of “automatic system” to do this for me.
Months ago, I had a conservation with @MortenCopenhagen about this and we thought on how to create a “macro” to do this:
So, with zero coding experience but high determination I was able to create a small macro program to do this for me.
Where to find it
In the shared folder you will see a file named: macro.py It is the small python program I did. Not perfect, not nice but it is doing what I need.
Here the link: [macro python code]
How to RUN it
It is a python code so you need python on your computer. Sorry for that. Once installed python simply type “python macro.py” at terminal shell (if you are using a Mac) or command shell (for Windows).
How it works
-
Run the code: python macro.py
Start your editing session. Once you have edited your first line you have to instruct / teach the code which are the “move and click” he has to repeat. Do the following -
Press CTRL-Shift-R to start recording (R = recording)
-
With the mouse click on all the place for submitting your work. Remember that are 8 moves
-
When finished press CTRL-Shift-S to stop recording (S = Stop)
-
Now do your next edit and, when finished, if all went ok
-
Press CTRL-Q (Q = … there is no reason; is only in an optimizes position on the keyboard) and the code will start to repeat the process
I do well know that looks complex; not user-friendly but my knowledge about coding was 0. Youtube, AI and other tools helped me to understand what I was looking for and to learn how to reach this. (BTW @AdamGT I was able also to solve my webscraping problem. Ready to trace all the future roaders of the next TRAC Campaign 2025 of @SholaIB )
Ohhh yes ! I know. Yes, you can add multiple roads, like the image below, and submit your 80+ roads with only 1 submit but… tell me, you prefer 15 points or 1200 points?
I hope you like it
Fell free to use / modify freely the code.
PLEASE if you find a better solution… share!
Take care and enjoy.
Marco


