Custom routing with areas to block road

The geometry is casted in a Polygon, then it tests whether the edge of the graph is in the polygon or not.
There is no check to avoid to load point instead of polygon.