Journal Com2Kid's Journal: AJAXian Canvas, Python, and Web 2.0 goodness 4
Ever had to find your way around a huge college campus? How about ever been late for a class or meeting on a regular?
AJAX to the rescue!
WWU Route Finder is a proof of concept of an AJAX map using Canvas and Python. Click two buildings, and the Python back end, accessed using XMLHTTPRequest of course, shows you the shortest path between your start and destination.
The biggest advantage is that the Python back end can access a highly optimized Graphing library and potentially support real time processing of hundreds of thousands of nodes, taking advantage of the server hardware and not relying upon the performance of a browser's Javascript engine.
Now THAT is cool! (Score:2)
Re: (Score:1)
Indeed, I did. Freshman/Sophmore algorithms, but excellent use of them. :)
My county kinda-sorta-almost has something like it set up. Dealing with directed graphs and dynamic weights instead, path finding across a city is a fair bit harder, but King County here in WA state has "common point to point" times that are calculated in semi-real time. (i.e. updated every x minutes).
safari (Score:2)
Re: (Score:2, Interesting)
I have no clue why, it is just a simple alert() call. ^_^
Actually, scrolling the page is broken in every browse except Firefox. Why? Well every browser[1] implements getting the mouse coordinates from a click event differently, and FF is the one I happen to have. I also have the IE code in there, but IE doesn't support canvas. Google has exCanvas I can use if I want IE canvas tag support, but I did not have time yester