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