[Routing] Updated pyroute - loads data as required, can now do long-distance routes

OJ W ojwlists at googlemail.com
Sun Jun 1 19:55:13 BST 2008


I'm just testing an updated version of pyroute (proper announcement
later), but it looks like it's now capable of routing across hundreds
of miles

software is here:

http://svn.openstreetmap.org/applications/routing/pyroutelib2/

it relies on a tile data server

http://wiki.openstreetmap.org/index.php/Tile_data_server

which currently has UK data only.

To run it, use a command-line like:

python routeAsGpx.py 52.03818 -0.76171 50.90855 -1.41319 car > output.gpx

sample output routes here:

http://dev.openstreetmap.org/~ojw/files/route/

which you can view in any GPX viewer (e.g.
http://www.gpsvisualizer.com/ is a convenient one)

when I ran it on my 800MHz/128MB development PC, it took about a
minute to route > 100 miles, including downloading all the data
required.

It only loads data as required -- if a potential route ventures into
some area that it hasn't loaded data for, it grabs that data either
from disk cache or from the server. Should reduce memory usage a
bit...




More information about the Routing mailing list