You just make the value for the cost to be very high, is there a given
value that should be used?
Well, you can make it high that you can be sure that it will be longer than what could be a valid total length of a route.
And if your result will be longer than that, you can assume that it took a one-way street in the wrong direction, because probably there was no other way.
Daniel
Dave Potts wrote:
Hi
Is there a way of saying the link between nodes A and B in a given network
is a one way connection?
I had assume that setting the to_cost/reverse_cost would be the way to go,
but I have not see this type of thing describe on any of the web pages.
You just make the value for the cost to be very high, is there a given
value that should be used?
Well, you can make it high that you can be sure that it will be longer
than
what could be a valid total length of a route.
And if your result will be longer than that, you can assume that it took
a
one-way street in the wrong direction, because probably there was no
other
way.
Daniel
Dave Potts wrote:
>
>
> Hi
>
> Is there a way of saying the link between nodes A and B in a given
network
> is a one way connection?
>
> I had assume that setting the to_cost/reverse_cost would be the way
to
go,
> but I have not see this type of thing describe on any of the web
pages.
>
> regards
>
>
> Dave.
>
> --
>
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
I believe either can be used. Using a high value will allow you to traverse the oneway street in reverse if there is no other way to go rather than fail. Using -1 will eliminate the edge from the directed graph. Which you use depends on your use case and the type of analysis you are performing. In a general sense either should work.
You just make the value for the cost to be very high, is there a given
value that should be used?
Well, you can make it high that you can be sure that it will be longer
than
what could be a valid total length of a route.
And if your result will be longer than that, you can assume that it took
a
one-way street in the wrong direction, because probably there was no
other
way.
Daniel
Dave Potts wrote:
Hi
Is there a way of saying the link between nodes A and B in a given
network
is a one way connection?
I had assume that setting the to_cost/reverse_cost would be the way
to
go,
but I have not see this type of thing describe on any of the web