Google Maps Live is an extension for Firefox 1.0 that allows you to feed latitude/longitude data to Google Maps and have it tracked in realtime. The extension works by listening for the data on a socket.
Install and try it out!
You must have a Google Maps page open in Firefox for the extension to use.
The extension accepts data in the form "decimal lat,decimal lon" or in the form "HDDMMSS.S,HDDDMMSS.S".
Telnet example:
telnet localhost 24273<enter> 40.57878,-75.35046<enter>Where <enter> means "hit enter". This will center your Google Maps page roughly on my apartment. Note that the zoom level stays at whatever you have set it to.
Netcat example:
nc -i 0.5 localhost 24273 < track.txtThis will send the contents of track.txt to the extension with a half second delay between lines. (Note that the default netcat will only accept integer values for -i, my hacked build allows decimals) You can download a sample track file I made here. It's a rather uninteresting drive to the Lehigh Valley Airport which I recorded on my Garmin iQue 3600.
You can change a few settings in the options dialog, which you can get to from Tools->Extensions.
You can access this component in javascript like so:
gs = Components.classes["@ted.mielczarek.org/gmapserver;1"].getService(Components.interfaces.nsIGmapServer);The interface is detailed in nsIGmapServer.idl.