logo separator

[mkgmap-dev] [PATCH v2] modify road speed and class from a POI

From Mark Burton markb at ordern.com on Wed Oct 14 21:51:31 BST 2009

v2 - you can now have mkgmap:road-class-min and mkgmap:road-class-max
tags (and the same for the road speed) that will limit the final value
used. These can either be added to the POI (from whence they will be
transferred to the way by mkgmap) or directly to the way.

---------------------


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-v2.patch
Type: text/x-patch
Size: 6803 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20091014/1c606820/attachment.bin 


More information about the mkgmap-dev mailing list