
Hi Gerd, do you have an idea how to set that in the style? I think "goods" should not be mapped to delivery. This might also be changed in the default style access rules. The wiki tells about goods: light commercial vehicles; e.g., goods vehicles with a maximum allowed mass of up to 3.5 tonnes So it should better be mapped to truck? WanMil
Hi all,
I've just modified a routine that translates the vehicle types used in OSM to the ones used in Garmin restrictions: if(vehicle.equals("motorcar") || vehicle.equals("motorcycle") || vehicle.equals("motor_vehicle")) flag = RouteRestriction.EXCEPT_CAR; else if(vehicle.equals("psv") || vehicle.equals("bus")) flag = RouteRestriction.EXCEPT_BUS; else if(vehicle.equals("taxi")) flag = RouteRestriction.EXCEPT_TAXI; else if(vehicle.equals("delivery") || vehicle.equals("goods")) flag = RouteRestriction.EXCEPT_DELIVERY; else if(vehicle.equals("bicycle")) flag = RouteRestriction.EXCEPT_BICYCLE; else if(vehicle.equals("hgv") || vehicle.equals("truck")) flag = RouteRestriction.EXCEPT_TRUCK; if (flag == 0){ log.warn(messagePrefix, "ignoring unsupported vehicle class '" + vehicle + "' in turn restriction"); return false; } else { ...}
I think that this should better be done in the style?
I also wonder why the wiki lists different kinds of vehicles for restriction:<vehicle>=<turn> , type=restriction:<vehicle> , and except=* I hope it is okay to use the same code for all of them?
Gerd
-- View this message in context: http://gis.19327.n5.nabble.com/vehicles-in-restriction-relations-tp5801618.h... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev