hey guys,
I'm interested in using the cached version for, say, 10 minutes:
var geo = google.gears.factory.create('beta.geolocation');
function updatePosition(pos) {
console.log("from gears: ", position)
}
function handleError(positionError) {
//fail quietly
}
geo.getCurrentPosition(updatePosition, handleError,
{ enableHighAccuracy: true,
gearsRequestAddress: true,
maximumAge: (10 * 60 * 1000) });
however, after this is run (and a few seconds of waiting), console.log
shows an object whose timestamp is constantly being updated. So it
doesn't look like it is being cached.
Am I approaching this wrong?
The documentation wasn't quite clear what maximumAge took, besides an
integer. I'm assuming it is in milliseconds, though explicitly
stating that would be a nice addition to the docs.
thanks folks!!
Adam