Hi Cathal,<div><br></div><div>The subject of your today's email is maybe not the best selection ;-)</div><div>You can also send three emails with one question each.</div><div><br><br><div class="gmail_quote">2011/4/15 cathal coffey <span dir="ltr"><<a href="mailto:coffey.cathal@gmail.com">coffey.cathal@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Devs,<div><br></div><div>I have three questions today.</div><div><br></div><div><i><b>1) I would like pgrouting to be aware of one-way streets.</b></i></div>
<div>I have read the page "<span style="font-family:'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;font-size:10.8333px;color:rgb(51, 51, 51);font-weight:bold;line-height:21px">How to handle one-way streets" </span>but it has left me wondering, am I supposed to manually identify and label every one way street in my database?<br>
<br></div></blockquote><div><br></div><div>You can also try osm2po (<a href="http://osm2po.de">osm2po.de</a>) to import OSM data. It's fast and adds several useful attributes to the table. It's not Open Source license though, but it's free to use. </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></div><div><b>2) I am interested in buses so I do not want any of my shortest paths to include (pedestrian or bike) ways. </b></div>
<div>I am using the wrapper function dijkstra_sp_directed, is there a way to tell this function to ignore ways that are of type<b> </b>pedestrian or bike.</div></blockquote><div><br></div><div>You just select the data you need. That's it. </div>
<div>You need to modify wrappers or need to use the core functions if you want to have full control over what you want to select and what you don't want to select. </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>
<br></div><div><b>3) pgRouting comes with some useful wrapper functions but it seems to me that it is missing one very useful one. </b></div>Why does pgRouting not ship with a function that calculates shortest paths from two (lon, lat) pairs? <br>
Both myself and Daniel have written functions that do just this.<br>Daniel: <a href="http://websi.openvrp.com/" target="_blank">http://websi.openvrp.com/</a></blockquote><div><br></div><div>It wasn't me, it was Anton, who wrote the wrappers.</div>
<div><br></div><div>The reason why there are not more wrappers available on the website is simple: nobody shares them ;-)</div><div>There might be several reasons for that, for example:</div><div><ul><li>it's too much to share them and contribute (we hope we made this easier by migrating to Github)</li>
<li>they are made for a certain data provider or a specific use case </li></ul><div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>Cathal: <a href="http://ncg.nuim.ie/i2maps/projects/sp/index.html" target="_blank">http://ncg.nuim.ie/i2maps/projects/sp/index.html</a><br>
I am not familiar enough with plpgsql to convert my code from Python but if someone else wanted to do it then I would be very happy to see this shipped with pgRouting.<br><div>
<br></div></blockquote><div><br></div><div>It's nice that you share your experience and code. Maybe a tutorial about how to write a wrapper would help a lot of users. Any volunteer is welcome!</div><div>The library itself should be universal and work for any network data though. It's important to keep this in mind.</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;"><div></div><div>Kind regards,</div><div>Cathal</div><font color="#888888"><div>
<br></div><div><br></div>
</font><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>
<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>