logo separator

[mkgmap-dev] motor_vehicle

From Mark Burton markb at ordern.com on Sun Feb 21 10:16:16 GMT 2010

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



More information about the mkgmap-dev mailing list