Link to home
Start Free TrialLog in
Avatar of alanrogerson2
alanrogerson2

asked on

Continuous update/refresh for Google maps - can this be done?

I am trying to build a vehicle tracking system.  It will comprise of:

1) XML file with GPS Coordinates
2) HTML document with Javascipt in order to link in with Google Maps API
3) XSLT document to get xml content into the appropraite format in html document

I have written a separate program in Delphi.  This will automatically update the xml file with the current coordinates of the vehicle.  This will update the XML file every 30 seconds.

It is all working at the moment, but in order for me to see the changing coordinates of the vehicle (remember that the xml file is being updated every 30 seconds) then i have to load the xml file and refresh the cache.  I can't simply just refresh the html page as this just refreshes the html data.

Does anyone know of a way to have the xml data feed into the html document and continuously update the map that is being displayed?  If this can be done without requiring the user to refresh anything (html or xml) then this would be the perfect solution.

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Shalom Carmel
Shalom Carmel
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alanrogerson2
alanrogerson2

ASKER

I used AJAX but stil had the caching problem.  I ended up loading the xml file with a random number parameter at the end of the URI.  This seems like a bit of a cheat to me but it works.  

Thanks for all your help.
>>bit of a cheat

never ;-)

thanks for the points

Ellandrd