logo separator

[mkgmap-dev] [patch v1] link-pois-to-ways and restrictions

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Dec 23 11:22:27 GMT 2013

Hi all,

attached is a patch that changes the handling of option 
--link-pois-to-ways.
In trunk, this option has two effects:
1) If a POI with a tag like access=mkgmap:road-speed=1
(e.g. highway=traffic-lights)
is found in a way, the way is split at the preceding and 
following point and the change is applied to the remaining
part. The length of the effected part depends only on the distance
to the next point. If the way is straight, that can be > 300m,
if the POI is in an a curve, it might be < 10m.
2) If a POI with a tag like mkgmap:bicycle=no (e.g. barrier=bollard) 
is found in a way, splits the way and before and after the POI so
that the length of the affected way segment is typically less 100m.
(max 50m before + max. 50m after the POI)
Next, the way is split again at the POI, so that routing 
over the POI is not done for the restricted vehicles.
The effect is that routing to a point close to the POI
might not work (don't know that for sure, the device might
ignore the restriction if the target cannot be reached 
"legally").

I think the wanted behaviour is this:
1) The change in speed should be applied to max. 25m
before and after the POI or to the connection
with another way, whatever comes first.
2) A POI like a barrier should not change access 
to the way before or after the POI, only at the POI.

The attached patch implements this changed behaviour.
The type 2)  POI are converted to route restrictions.

The patch also changes the meaning of route restrictions.
In r2907 and before, route restrictions prohibit access for
pedestrians and emergency, the patched version
allows them by default.

If I hear no complains, I'll commit that next sunday.

Gerd
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131223/79190055/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link-pois-to-ways-v1.patch
Type: application/octet-stream
Size: 35155 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20131223/79190055/attachment-0001.obj>


More information about the mkgmap-dev mailing list