[PATCH] proof of concept code to generate fake POIS for named ways

Folks, The attached patch adds a --road-name-pois option that will generate a named node for each named way. It currently places the node near the middle of the way. The fake node has a tag place=road_name_POI and will need an entry in the points file like this: place=road_name_POI [0x640a resolution 21] I think the code 0x64a is a good choice because it is shows up as a "geographic point" (well, it does on the etrex). The patch is really just for experimentation and comment but it could grow into something useful. In particular, the manner I have implemented it may not be optimal/approved. It's just what came to mind first. As I don't actually need this functionality myself, perhaps it would be better for a developer that wants this (and has suitable hardware for testing) to take it over. BTW - It currently makes no attempt to merge multiple ways with the same name. Cheers, Mark

Hi, Here's a new version that removes the duplicate POIs when you have a road made from multiple ways with the same name. It was a lot harder to write than I imagined it would be! BTW - I have changed the tag to place=road_name_poi (not POI as before). Cheers, Mark

And yet another revision of this patch. This fixes a problem with the way combining function (it was failing to combine sub-groups of connected ways). Mark

Today's version of the patch stops POIs being generated for ways that aren't highways. Cheers, Mark
participants (1)
-
Mark Burton