Hi,

A while ago a user reported that they were being routed through a closed
highway. The highway in question was marked as highway=construction. What's
the best way to ensure that you don't get routed through the path that's
created in the default style when a way is marked as highway=construction?
I'm not able to test this easily because the highway is now back in service.

I've attached a patch that adds access=no to the highway=construction rule.
Is this a good way to prevent routing through highway=construction roads?

Thanks, Ben
diff --git a/resources/styles/default/lines b/resources/styles/default/lines
index ab89b5a..a36970d 100644
--- a/resources/styles/default/lines
+++ b/resources/styles/default/lines
@@ -107,7 +107,7 @@ junction=roundabout [0x0c road_class=0 road_speed=1 resolution 22]
 # Ways that may or may not be useable
 
 # Treat ways under construction almost as highway=path
-highway=construction { add mkgmap:dead-end-check = false; }
+highway=construction { add mkgmap:dead-end-check = false; setaccess 'no'; }
 [0x16 road_class=0 road_speed=0 resolution 23]
 
 # Lower the road speed of ways under some construction.
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to