Is that any way to set different weight or importance of barrier on a map? I wonder if it's possible to set different kinds of barriers in terms of levels of dangerousness. For instance, if only one of two different routes can be chosen. However, both routes have 1 barrier each. On route A the barrier has level 1 of dangerousness and the barrier on route B has level 2 of dangerousness. So the route A would be chosen due to its lower dangerousness level.
I'm using polygon as barriers as shown in the picture below.
