dijkstra (#16) - "resistance" (#176) - Message List

"resistance"

Hello, i'm new using pgRouting, however, it works pretty well. i wonder if the shortest path algorithm include the analysis of the resistance. i mean, for example i manage 2 types. 1 is open and 0 is close. so, if the algorithm's is going for a path and found resistance 0 means that can't continue over this way because is blocked. So, it gets back to find another way.

thanks, Fernando

pd: sorry for my bad english (:

  • Message #610

    Hi Fernando,

    I think I answered you already in the PostGIS mailing list. Anyway, it is worth to repeat. You can block edges by assigning high value to cost field. Or, if you wish, you can add one more field, let's say, of boolean type and name it is_blocked, and then use core routing function (not wrapper), where you can limit your search area with non-blocked edges only - "SELECT ... WHERE NOT is_blocked".