Hello Marko,

+               new AccessMapping("motor_vehicle", RoadNetwork.NO_CAR),

That's not enough because if motor_vehicle=no, you also want stop
psv/taxi/emergency/hgv.

It's more like:

String mv = way.getTag("motor_vehicle");
if(accessExplicitlyDenied(mv)) {
  way.addTag("motorcar", "no");
  // and so on for the other motor vehicle types
}
else if(accessExplicitlyAllowed(mv)) {
  way.addTag("motorcar", "yes");
  // ...
}

That will get the Java to do what some people have been doing in the
style file.

Mark
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to