Hi Markus,<div><br></div><div>Now it worked ;-)<br><br><div class="gmail_quote">2011/2/11 Hens,Markus M. <span dir="ltr"><<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey all,<br>
<br>
I am new to pgRouting and I have a general question.<br>
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?<br></blockquote><div><br></div><div>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.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
For example would the result route me in an oneway street where I am not allowed to drive?<br></blockquote><div><br></div><div>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: <a href="http://www.pgrouting.org/docs/1.x/astar.html">http://www.pgrouting.org/docs/1.x/astar.html</a></div>
<div>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"</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Does the result really contains only the shortest path with no information about prohibitions or am I wrong?<br></blockquote><div><br></div><div>Yes. You have to model your network that it reflects these prohibitions.</div>
<div><br></div><div>Daniel</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Best regards,<br>
<br>
Markus Hens_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66, 99, 171)" target="_blank">daniel.kastl@georepublic.de</a><br>
Web: <a href="http://georepublic.de/" style="color:rgb(66, 99, 171)" target="_blank">http://georepublic.de</a></span><br>
</div>