use locator to change highway tags within polygons?

Hi list, Is it possible to retag all unclassified roads within a polygon landuse=residential into highway=residential with the locator? I know it is possible with the locator to retag lines within an administrative district, for example highway=trunk are handled as motorways within certain countries: highway=trunk & mkgmap:country ~ '(NLD|BEL|LUX|FRA|DEU|AUT|CHE|DNK|HUN|ROU)' { set highway=motorway } So I would guess this will work with landuse=residential by adding admin_level=11 (or 12?) by preprocessing the country extract or in the polygons file (although I doubt that the second option is working): polygons: landuse = residential {add boundary=administrative; add admin_level=11} lines: highway=unclassified & mkgmap:admin_level=11 { set highway=residential } (or alternatively, add a road_speed or road_class penalty?) Do I need to prepare a custom bounds file and will this work? If this works, I can improve the routing by avoiding residential or industrial/commercial areas, or even prefer nature areas like forests, parks, natural districts etc.

I found out myself that it worked, but this procedure has of course its drawbacks. See http://forum.openstreetmap.org/viewtopic.php?pid=226259#p226259
participants (1)
-
Minko