[OSM-dev] Routing over OSM data

Christopher Schmidt crschmidt at metacarta.com
Sun Oct 21 17:43:36 BST 2007


http://crschmidt.net/osm/routing-demo.html
(FF Only. *WILL NOT WORK IN IE.*)

   1. Click "Set Start Point"
   2. Click on the map
   3. Click "Set Stop Point"
   4. Click on the Map, and without letting go, drag around.

(May take some time to get started the first time, since the machine
it's running on is somewhat... overused, given the current load average
of 3/4.)

Uses http://graphserver.sourceforge.net/ with some hacks on top to load
the small OSM file at http://crschmidt.net/osm/cambridgeport.osm .
Currently not entirely scalable, but that's a project for next weekend
-- this weekend was to just get it working :)

Brandon has tested Graphserver with OSM graphs of ~20MB and had good
success -- now I just have to make the rest of the code scale similarly
:)  

This is also, for the record, showing the use of OpenLayers reprojection
support (not in trunk yet) -- you'll notice that it's using the standard
OSM tiles, but the mouse possition, permalink, etc. are in lat/lon.
(This is the part that doesn't work in IE, for the record.) This support
should go into trunk in the next release.   

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the dev mailing list