[pgrouting-users] indifcating one way streets with to_cost/reverse_cost

Daniel Kastl daniel at georepublic.de
Wed Jan 18 04:00:57 EST 2012


On Wed, Jan 18, 2012 at 4:31 PM, Dave Potts <dave.potts at pinan.co.uk> wrote:

> Ok the matter is addressed in
>
> http://www.pgrouting.org/docs/howto/oneway.html
>
> 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 at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/pgrouting-users
> >
>
>
> --
>
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>



-- 
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20120118/ce3736cb/attachment.html


More information about the Pgrouting-users mailing list