Comment from Thunderbird on 7 September 2016 at 00:42
An interesting idea for those who have a large number of unnamed streets. I prefer to name as I go, I will not let myself move to the next street without giving the first one a name.
Comment from Reece202 on 7 September 2016 at 02:19
Could the script filter out specific unnamed roads, possibly with a special tag to keep a way unnamed? In most Calliesanyan towns, a lot of the "residential" streets are historically unnamed, with addresses being given (for all locations) with a system similar to the Japanese address system. Industrial Era developments (and later) would assume a more 'Western' naming scheme where this script could be useful, but I woudn't want to have to specifically de-name the city centre streets manually
Comment from Luciano on 7 September 2016 at 02:56
This seems brilliant! As far as I'm concerned, this is an "automatic win" for my September challenge, too.
I would definitely like to have a try at using this code - although in fact, I don't have many areas where I need a lot of names, since I'm pretty methodical with the name-as-you-go strategy. But anyway it's interesting, and in fact I might use it sometime by intentionally leaving streets unnamed so as to be able to use it, because I like the idea of a random result.
As far as "non-connected ways that make up the same street" leading to multiple names... in fact, in many cities in the world (notably my experience in Europe and in Korea), street names change seemingly randomly (although there are historical reasons, obviously) every few km. So this might actually be a realistic effect.
Comment from Paxtar on 7 September 2016 at 03:07
@Thunderbird: Your method probably gives much better results!
@Reece202: I used JOSM to identify unnamed ways, and then named them "WayNameNeeded". What I wrote looked for that exact key in the file and updated it. Everything else was ignored.
Comment from EMKLI on 7 September 2016 at 05:23
Wow! This is great!
Maybe a small addition: could you refine your scripts that it shows the user options to leave out roads of a certain hieararchy, so that it doesn't tag primary roads and/or motorways, for example? I think, this would solve the problem of manually re-tag main roads in the aftermath.
Comment from Pawl on 7 September 2016 at 05:55
This is really good!
I would like to give it a try, and see how it's done with a view to adapting it for other automated changes.
Comment from BelpheniaProject on 7 September 2016 at 09:51
This is great! I had been naming streets one-by-one since I joined OGF almost two years ago, and then, I finally came across this user diary. Then I would like to try out the new JOSM plugin to name my unnamed roads across Belphenia and Maydien (if possible).
Comment from Paxtar on 7 September 2016 at 15:36
@Luciano: I came up with the idea before your August challenge, but didn't have time to work on it before the end of the month. I didn't think of it until you mentioned it, but there are several streets in the area where I live that change names, some as the streets go from city to city, and others for no reason that I can tell. I'm good with calling the bug a feature. :)
@EMKLI: I used JOSM filters to select the streets I wanted to rename, so leaving out specific types of streets should just be a matter of updating or adding filters.
@Pawl: The code is set to look for marked ways, so other types of ways could also be renamed. I have a number of parks that I'm going to try to rename. What did you have in mind?
@BelpheniaProject: It is not a plug-in, and is run separately from JOSM. But JOSM is needed to prepare the OSM data for updates.
I will try to get the code cleaned up by this weekend, and add comments to make it a little more user friendly.
When ready, I will post a link with some instructions.
Comment from deltanz on 7 September 2016 at 17:26
Wow, sounds amazing! I also use the name-as-you-go strategy, so far, no street in Neo Delta and Brugas is without name. But, at the same time, it takes so long!!! I'd love to give it a try! :D
Comment from JBstad1 on 7 September 2016 at 17:37
I'm interested. Granted, I need to name my streets in Maèse. Worth a try.
Comment from isleño on 8 September 2016 at 08:02
This is great! Can't wait to try it out. :-)
Comment from Leowezy on 8 September 2016 at 19:43
This really looks like an amazing piece of work! So jealous for anyone who is able to use programming to create custom functions with JOSM and alike.
Just to shed a different perspective on the issue besides all the well earned applause, I think there are many situations where it can be very rewarding to actually name the streets individually. If you have a city quarter for example where you want to name all streets after some scientists of your country, it might make sense to use this strategy and compile a list first and then have them assigned "randomly" on the individual paths. And, I'm convinced, to other members looking at the map it would make no difference at all. However I have this feeling that I, personally, would feel some sense of disconnection with my work if I went through a city ward and had to "discover" what the roads' names are. By naming each street individually, I feel like I literally know every single corner of the city when I browse through it, while automating the naming might put me in the role of a more distant "observer" again.
But the again, once I actually get to a decent naming density, my opinion might radically shift on that XD
Comment from tule00 on 9 September 2016 at 17:33
Your concept seems interesting, however, I wouldn't just randomly name all streets
Comment from Luciano on 11 September 2016 at 09:39
Paxtar let me give it a try. I had to struggle with the unicode issue (in my case, Korean words), as I have in the past with other automation efforts, but I got it to work. There are about a half-dozen spots in the Eclipse IDE where a text encoding setting needs to be changed from system default to UTF-8. It took me a while and some googling to find which ones needed to be changed. Once that was done, it worked fine.
I did a trial with a very small set - mostly because I don't have any long lists of names already developed that I would feel comfortable using. I do for Mahhal, but right now there is a moratorium on street-building in Mahhal.
So I built out a neighborhood in downtown Jeongtosi, Ardisphere, with about 40 unnamed streets, and then took a backlog of street name ideas I keep in my Colonia Coreana onomastics folder, and merged them together using Paxtar's program. Obviously, for such a small number, it would have been faster to just do it manually, but I was eager to give it a try.
I made before and after screenshots.
If you have a lot of streets to name, and you're comfortable with technical stuff - including some experience working in some kind of IDE (not necessarily Java/Eclipse, but something), then I can recommend giving it a try - it has a lot of potential.
Just because of my mapping style, I probably won't use it much for streets. But I could see using it for other things, with modifications, farther along. I was thinking about using it to label businesses, for example.
Thanks Paxtar for this excellent tool!
Comment from Paxtar on 12 September 2016 at 03:54
The program, information, and instructions, have been posted here, for anyone who is interested.
* First item
* Second item
1. First item
2. Second item