[mkgmap-dev] vehicles in restriction relations
From WanMil wmgcnfg at web.de on Sun Mar 30 12:34:28 BST 2014
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.html > Sent from the Mkgmap Development mailing list archive at Nabble.com. > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >
- Previous message: [mkgmap-dev] vehicles in restriction relations
- Next message: [mkgmap-dev] vehicles in restriction relations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list