
On Oct 12, 2009, at 17:12, Mark Burton wrote:
I want to dissuade my gps from using very narrow roads (for car routing) so one way of doing that is to reduce the road class and/or speed if the road is narrower than some threshold. I can easily imagine how to do that in mkgmap using some new Java code but I suspect that it could be done using style rules (of which I know nothing). Is that possible?
I suspect you could do it with something like the following: highway= primary & (width=narrow | width < 2 | est_width < 2) [0x04 road_class=2 road_speed=3 resolution 20] highway=primary [0x03 road_class=3 road_speed=4 resolution 19] (This would demote a primary road to the equivalent of a secondary.) I, however have not tested this, so I cannot confirm if this would work. Cheers.