[mkgmap-dev] [PATCH v1] modify road speed and class from a POI
From Mark Burton markb at ordern.com on Wed Oct 14 00:14:00 BST 2009
This is something that was briefly discussed not too long ago and the idea is that a road's speed or class can be modified by the presence of a POI that defines new values for either/both of them. This, hopefully, will make ways that have stuff like traffic signals and crossings, etc. less attractive to route over. The values are specified using mkgmap:road-speed and mkgmap:road-class tags added to the POI. These tags expect an integer value, optionally preceded by a + or - which make the adjustment relative to the original value. For example, mkgmap:road-speed=3 sets the speed to 3 and mkgmap:road-speed=-1 reduces the speed by 1 from whatever value it had before. Here's some possible rules for the points file: highway=traffic_signals { add mkgmap:road-speed = '-1' } highway=crossing { add mkgmap:road-speed = '-1' } highway=mini_roundabout { add mkgmap:road-speed = '1' } The region of the way that has its speed/class modified is limited to the closest points either side of the POI. Not sure if that's the right thing to do yet. Needs playing with. You need to specify the --link-pois-to-ways option to enable this functionality. All feedback welcome. Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mb-set-road-params-from-poi-v1.patch Type: text/x-patch Size: 5635 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20091014/1f6fb8df/attachment.bin
- Previous message: [mkgmap-dev] [PATCH] ref/operator/shelter naming for stops of public transit
- Next message: [mkgmap-dev] [PATCH v1] modify road speed and class from a POI
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list