[pgrouting-dev] General question for understanding

Daniel Kastl daniel at georepublic.de
Fri Feb 11 08:47:38 EST 2011


Hi Markus,

Now it worked ;-)

2011/2/11 Hens,Markus M. <m.hens at student.fontys.nl>

> Hey all,
>
> I am new to pgRouting and I have a general question.
> When I have imported my osm data to pgRouting database and calculate a
> route via A* from x to y does the result contains any information about
> where it is allowed to drive?
>

The route shouldn't contain any roads in the result you're not allowed to
drive at. It should instead return you another way instead.



> For example would the result route me in an oneway street where I am not
> allowed to drive?
>

The "cost" attribute for a road link is the cost from start to end node, the
"reverse_cost" attribute is the cost in the opposite direction:
http://www.pgrouting.org/docs/1.x/astar.html
So a oneway street has very high cost in one of these two cost attributes.
If this cost is very high it will always try to find another way ... except
there is no other way. But you could easily check this if the result returns
very high "cost"


>
> Does the result really contains only the shortest path with no information
> about prohibitions or am I wrong?
>

Yes. You have to model your network that it reflects these prohibitions.

Daniel



>
> Best regards,
>
> Markus Hens_______________________________________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev
>



-- 
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-dev/attachments/20110211/8472e106/attachment.html


More information about the pgrouting-dev mailing list