<br><br><div class="gmail_quote">2011/2/11 Hens,Markus M. <span dir="ltr">&lt;<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hey Daniel,<br>
<br>
you mean its only possible for ways instead of nodes?<br></blockquote><div><br></div><div>Yes. If you have attributes as part of nodes, you need to model your network in a way, that it takes these attributes into account. The shortest path algorithms require road links with &quot;costs&quot;. If you think this is not possible, just make your &quot;bridge&quot; point a road link ... in reality it&#39;s rather a linestring than a point anyway.</div>

<div><br></div><div>Daniel</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
Markus<br>
________________________________________<br>
Von: <a href="mailto:pgrouting-dev-bounces@lists.osgeo.org">pgrouting-dev-bounces@lists.osgeo.org</a> [<a href="mailto:pgrouting-dev-bounces@lists.osgeo.org">pgrouting-dev-bounces@lists.osgeo.org</a>] im Auftrag von Daniel Kastl [<a href="mailto:daniel@georepublic.de">daniel@georepublic.de</a>]<br>


</div>Gesendet: Freitag, 11. Februar 2011 15:17<br>
<div class="im">An: pgRouting developers mailing list<br>
Betreff: Re: [pgrouting-dev] General question for understanding<br>
<br>
</div><div class="im">Hi Markus.<br>
<br>
It&#39;s only possible for nodes. But as somehow the vehicle that needs to pass this node also must pass one or more ways to this node, you could add the hight limitation as an attribute to the ways, right?<br>
In you SQL query you could exclude all road links that contain a node that has a height limitation for example.<br>
<br>
Daniel<br>
<br>
<br>
</div><div class="im">2011/2/11 Hens,Markus M. &lt;<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&lt;mailto:<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&gt;&gt;<br>
</div><div class="im">Hi Daniel,<br>
<br>
thank you for the information. I understand these informations but I have one more question.<br>
<br>
If I have a node for example a bridge with an attribute for height and my vehicle is higher I would like to set the cost very high for the node.<br>
My question is if it is possible to set cost for nodes or only for ways.<br>
<br>
Markus<br>
________________________________________<br>
</div>Von: <a href="mailto:pgrouting-dev-bounces@lists.osgeo.org">pgrouting-dev-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:pgrouting-dev-bounces@lists.osgeo.org">pgrouting-dev-bounces@lists.osgeo.org</a>&gt; [<a href="mailto:pgrouting-dev-bounces@lists.osgeo.org">pgrouting-dev-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:pgrouting-dev-bounces@lists.osgeo.org">pgrouting-dev-bounces@lists.osgeo.org</a>&gt;] im Auftrag von Daniel Kastl [<a href="mailto:daniel@georepublic.de">daniel@georepublic.de</a>&lt;mailto:<a href="mailto:daniel@georepublic.de">daniel@georepublic.de</a>&gt;]<br>


<div class="im">Gesendet: Freitag, 11. Februar 2011 14:47<br>
An: pgRouting developers mailing list<br>
Betreff: Re: [pgrouting-dev] General question for understanding<br>
<br>
Hi Markus,<br>
<br>
Now it worked ;-)<br>
<br>
</div>2011/2/11 Hens,Markus M. &lt;<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&lt;mailto:<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&gt;&lt;mailto:<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&lt;mailto:<a href="mailto:m.hens@student.fontys.nl">m.hens@student.fontys.nl</a>&gt;&gt;&gt;<br>


<div class="im">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>
<br>
The route shouldn&#39;t contain any roads in the result you&#39;re not allowed to drive at. It should instead return you another way instead.<br>
<br>
<br>
For example would the result route me in an oneway street where I am not allowed to drive?<br>
<br>
The &quot;cost&quot; attribute for a road link is the cost from start to end node, the &quot;reverse_cost&quot; attribute is the cost in the opposite direction: <a href="http://www.pgrouting.org/docs/1.x/astar.html" target="_blank">http://www.pgrouting.org/docs/1.x/astar.html</a><br>


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 &quot;cost&quot;<br>


<br>
<br>
Does the result really contains only the shortest path with no information about prohibitions or am I wrong?<br>
<br>
Yes. You have to model your network that it reflects these prohibitions.<br>
<br>
Daniel<br>
<br>
<br>
<br>
Best regards,<br>
<br>
Markus Hens_______________________________________________<br>
pgrouting-dev mailing list<br>
</div><a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>&lt;mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>&gt;&lt;mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>&lt;mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>&gt;&gt;<br>


<div class="im"><a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br>
<br>
<br>
--<br>
Georepublic UG &amp; Georepublic Japan<br>
</div>eMail: <a href="mailto:daniel.kastl@georepublic.de">daniel.kastl@georepublic.de</a>&lt;mailto:<a href="mailto:daniel.kastl@georepublic.de">daniel.kastl@georepublic.de</a>&gt;&lt;mailto:<a href="mailto:daniel.kastl@georepublic.de">daniel.kastl@georepublic.de</a>&lt;mailto:<a href="mailto:daniel.kastl@georepublic.de">daniel.kastl@georepublic.de</a>&gt;&gt;<br>


<div><div></div><div class="h5">Web: <a href="http://georepublic.de" target="_blank">http://georepublic.de</a>&lt;<a href="http://georepublic.de/" target="_blank">http://georepublic.de/</a>&gt;<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>&lt;mailto:<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a>&gt;<br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
<br>
<br>
<br>
--<br>
Georepublic UG &amp; Georepublic Japan<br>
eMail: <a href="mailto:daniel.kastl@georepublic.de">daniel.kastl@georepublic.de</a>&lt;mailto:<a href="mailto:daniel.kastl@georepublic.de">daniel.kastl@georepublic.de</a>&gt;<br>
Web: <a href="http://georepublic.de" target="_blank">http://georepublic.de</a>&lt;<a href="http://georepublic.de/" target="_blank">http://georepublic.de/</a>&gt;<br>
_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG &amp; 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>