
Hi, my garmin routed me again through a residential area on a road that is tagged as destination only. I think the "destination" check was lost during the last rework of the access code. Has anybody played with the RoadNetwork.DELIVERY field until know ? To me it looks like this might solve the problem. If the access is totally blocked to a area the routing gets very strange. If I want to go into this area I get routed via a unpaved road which is also blocked. If I set the RoadNetwork.DELIVERY field the routing gets more useful. My patch is attached ... Thanks Berni. Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java =================================================================== --- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (revision 284) +++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (working copy) @@ -502,6 +502,12 @@ noAccess[accessSelector[i]] = true; } log.info(vehicleClass[i] + " is not allowed in " + highwayType + " " + way.getName()); + + if(deliveryAllowed(access)) + { + log.info(vehicleClass[i] + " delivery allowed " + highwayType + " " + way.getName()); + noAccess[RoadNetwork.DELIVERY] = true; + } } else if(accessExplicitlyAllowed(access)) { if(accessSelector[i] == RoadNetwork.NO_MAX) { @@ -800,4 +806,11 @@ val.equalsIgnoreCase("private") || val.equalsIgnoreCase("destination")); } + + public boolean deliveryAllowed(String val) { + if (val == null) + return false; + + return (val.equalsIgnoreCase("destination")); + } }