
Hi Marco,
Why either side? shoudn't be enough one side only for restrict the access to the whole way?
Hey, thanks for that question, it reminded me that I needed to make the POI a routing node to stop routing across the POI when the start point is within the restricted region. The only case it doesn't work for now is when both the start and end points are within the restricted region (one each side of the POI).
I hope you force the add of an extra node in the way only if another point within 25m does not exists already...
Actually, I force it only if the other point is more than 50m away.
moreover, if a point exist in the way between 25m and 50m, you shoud add the new node by cutting the arc in 2 (otherwise you have a 25m arc on a side and a shorter arc on the other.
so, my proposal might be: the first point from the barrier is at a distance <25m: use the existing node
25m & <50m: put a new node in the middle 50m: add a node at 25m.
Go on, try that, see what it looks like. I think it will be ugly when the existing point is closer than 30m or so. Cheers, Mark