I am not sure about my understanding on your question is correct. And this may help you.<br><br><br>To restrict a rout we are giving a reverse-cost along with source and target as parameters to shortest path algorithm.<br>

In your case you should first assign some constant values to each restrictions(ex. one-way, heavy traffic roads, to restrict u-turns like that).<br>More the reverse-cost restriction also will be more.<br>for example,<br>
<br>
     Consider a road with  less traffic,two-way and high road capacity<br>                   traffic_const_min = 1(for avg traffic give 50 ,high traffic give 100)<br>                   two_way_const =1 (one_way_const say 100)<br>

                   road_capacity_more = 1 (for narrow roads give 100)<br><br>           and reverse-cost = roadlength*traffic_const_min*two_way_const*road_capacity_more<br><br><br><br><br clear="all">Regards<br><br>Sajeer T.K.<br>

<br>Mobile:  +966-560362982<br>Email:   <a href="mailto:sajeertk15@gmail.com">sajeertk15@gmail.com</a><br><br>