[Routing] Updated pyroute - loads data as required, can now do long-distance routes + toll areas
OJ W
ojwlists at googlemail.com
Fri Jun 20 08:40:09 BST 2008
just a quick note on the weightings file:
the number for each route type is a divisor for distance. so a value
of 3 means "I'd rather travel 3 miles on this type of road than 1 mile
on an unclassified road"
At the moment, it has:
'motorway': {'car':10},
so it will go 10 miles on motorway in preference to 1 mile on
unclassified road or 2 miles on primary road. Those numbers are
probably wrong so feel free to change them - all the optimisations
I've done so far have been for cyclists.
I suspect it's getting confused by the trunk roads through london, and
thinking they're the same as real trunk roads in ruralshire which you
can actually travel along at an appropriate speed.
p.s. anyone know if our "toll areas" (e.g. congestion charge) are in a
consistant direction? e.g. if they were all anticlockwise then you'd
know that crossing the boundary from right to left of the way incurs
the charge without having to download the whole lot and do an "is
inside?" calculation.
On Fri, Jun 20, 2008 at 12:18 AM, Mark Williams
<mark.666 at blueyonder.co.uk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> OJ W wrote:
>> Import should be complete now. Delete any cached data to see the new copy.
>>
>> the easiest way to check the data in your area is probably to run
>> pyrender and view the slippy map in a web browser
>>
>
> OK, great - that works a lot better. I see it's optimised for shortest
> distance - cross London rather than M25. I'll explore it later & see
> what's tweakable.
>
> That took a few minutes to get to the far side of Wales, including
> download (with the OSM servers down, so as tough as it's getting?) &
> succeed on all my previous failed tests, so clearly the old data was the
> answer. Additionally it finds my favourite routes ;)
>
> Well done, and thanks!
>
> Mark
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIWuk7JfMmcSPNh94RAvTMAJ4u24HleIT9UPUHIAv7uyQt4+kTVACfYI8o
> zt8EYDVpQSQU7RkZHCzfzck=
> =iuFk
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Routing mailing list
> Routing at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/routing
>
More information about the Routing
mailing list