[OSM-dev] Pyroutelib vs Pyroutelib2?

Tareq Ismail hellotheretareq at gmail.com
Mon Feb 22 16:07:52 GMT 2010


I've also been using the findNode command with the transport type of 'car'.
>From my understanding, it should return only a node that is routable with
that transport type so I don't believe that is the problem.

On Mon, Feb 22, 2010 at 7:55 AM, Tareq Ismail <hellotheretareq at gmail.com>wrote:

> I've been having trouble finding routes with pyroutelib. I am using
> transport as 'car' and it finds the route only 65 percent of the time, any
> suggestions as to why it wouldn't find the route between two points? I
> looked at some of the nodes that weren't finding any routes between and they
> were common road intersections that should have a route between.
>
> Does pyroutelib have the most recent up to date road types? Could that be
> the problem?
> Is there a way I can print out more detailed error message or something
> similar?
>
> Thanks again everyone and OJ,
>
>
> Tareq Ismail
>
>
> On Wed, Feb 17, 2010 at 1:11 PM, OJ W <ojwlists at googlemail.com> wrote:
>
>> I should probably know more about the history of this program than I
>> do, but here goes...
>>
>> I think pyroutelib was part of some huge GUI application for mobile
>> phones, whereas pyroutelib2 just pulled-out the routing code into a
>> smaller set of files that was easier to import into another project.
>>
>> It looks like pyroutelib2 requires you to specify the transport type
>> when you first load the OSM data (LoadOsm::__init__ takes "transport"
>> as a parameter). So findNode will probably return a node that you can
>> travel from, because it only stored such nodes whilst loading the
>> data.
>>
>>
>>
>>
>>
>> On Mon, Feb 15, 2010 at 10:23 PM, Tareq Ismail
>> <hellotheretareq at gmail.com> wrote:
>> > Hello,
>> >
>> > I was wondering what the main differences between Pyroutelib
>> > (http://wiki.openstreetmap.org/wiki/PyrouteLib,
>> > http://svn.openstreetmap.org/applications/routing/pyroute/) and
>> Pyroutelib2
>> > ( http://wiki.openstreetmap.org/wiki/Talk:PyrouteLib,
>> > http://svn.openstreetmap.org/applications/routing/pyroutelib2/) were
>> and why
>> > the two exist.
>> >
>> > One would assume that Pyroutelib2 is more recent but I think it may not
>> be.
>> > I noticed that the findNode method in loadOSM.py doesn't accept a travel
>> > type (car, cycle, etc) and that leads me to believe it may return a node
>> > that is not travel-able by a specific vehicle?
>> >
>> > Thanks,
>> >
>> >
>> > Tareq Ismail
>> >
>> > _______________________________________________
>> > dev mailing list
>> > dev at openstreetmap.org
>> > http://lists.openstreetmap.org/listinfo/dev
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100222/37a9cc22/attachment.html>


More information about the dev mailing list