I'm happy to announce not only the new version of the Boulder bus tracking server, but it's full C# source code.

Improvements:
-Automatically reconnects to the tracking server if the connection fails.
-No more poking the hard drive with every update, or having to run a web server to access it remotely. This version now has a small, simple web server built in which will serve the freshest data to Google Earth. This also eliminates errors produced by files being served during an update.
-Icons that show the bus' heading. Every bus' direction of travel is indicated by it's icon, rotated to the proper angle. Only one 30K image need be downloaded at the beginning of the session.
-Busses are automatically removed from the list when their GPS trackers go offline (usually at the end of the day).
-More intelligent logging system, with individual verbosity controls for console and file logging.

There's still a lingering bug where, if left running overnight, this program may not receive data as the bus' GPS trackers go online in the morning. I have an inelegant solution in mind, but I'm holding onto it while I investigate better ones. Again, this is only an issue when you leave it running overnight.
I'm holding off until I'm able to get the program running reliably enough that I don't have to constantly keep an eye on it before I post a KML link to my machine for everyone to look at. Until then you can get the same result with just a little more effort by running the program yourself. You can find an executable and KML ready to run in the 'Prebuilt binaries and documentation' directory of the attached ZIP file.


Attachments
71294-BusKML2sourcev0.9.zip (1553 downloads)
Preview this file with the Google Earth Plugin (learn more)