Thanks OJ!<br>That has solved my issue, you're wonderful.<br><br>I'm going to change how pyroutelib works so that it also accepts lat/lon in addition to nodes. <br>If I wanted to contribute my code to pyroute lib, how would I do so? Do you think it would be useful enough to contribute?<br>
<br>Tareq<br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 2:18 PM, OJ W <span dir="ltr"><<a href="mailto:ojwlists@googlemail.com">ojwlists@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The "data" object in that routing module should have a findNode()<br>
function that gives the nearest routable node for your chosen<br>
transport type.  This function is located in loadOsm.py<br>
<br>
(don't just choose the nearest OSM node since that might be a county<br>
boundary or something - the findNode function returns the nearest node<br>
which is on a path that you can travel)<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Feb 10, 2010 at 9:30 PM, Tareq Ismail <<a href="mailto:hellotheretareq@gmail.com">hellotheretareq@gmail.com</a>> wrote:<br>
> Hello all!<br>
><br>
> I'm new to OSM and am glad to be a part of the community! I posted the<br>
> following question on the newbies thread and was told to post it here<br>
> instead.<br>
><br>
> I have an application that has many addresses that I have geocoded. I am<br>
> trying to use Pyroutelib (see here:<br>
> <a href="http://wiki.openstreetmap.org/wiki/PyrouteLib" target="_blank">http://wiki.openstreetmap.org/wiki/PyrouteLib</a>) to find routing distances<br>
> from one address to another. It seems that the library does not accept<br>
> lat/lon (from the addresses I geocoded) as an input and only does node to<br>
> node routing. I thought I should then try to find the closet node to my<br>
> lat/lon position for my address, then send that node in to Pyroutelib for<br>
> routing.<br>
><br>
> Any suggestions as to how to do this? Is there something simple that I<br>
> haven't thought of?<br>
> Thanks all!<br>
><br>
><br>
> Tareq<br>
><br>
</div></div>> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> <a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
><br>
><br>
</blockquote></div><br>