I need to exclude some roads from routing. I solve this problem implementing it with EdgefFilter Or Is it better to use Weeighting interface? Thanks Antonio
Asked
Active
Viewed 237 times
1 Answers
0
This example is documented in the weighting docs so Weighting is perfect. But it could be done with an EdgeFilter too, although the Weighting is more powerful and you could e.g. introduce a high penalty instead of 100% blocking.

Karussell
- 17,085
- 16
- 97
- 197
-
Thanks for your answer. In my use case i have to avoid some stradal events, like man at work or car accidents. So i've thought use EdgeFilter is better. Best regards, Antonio – Antonio Grimaldi Mar 29 '15 at 20:50