W3C home > Mailing lists > Public > public-geolocation@w3.org > November 2008

Re: Drop lastPosition from Geolocation?

From: Greg Bolsinga <bolsinga@apple.com>
Date: Wed, 19 Nov 2008 09:15:06 -0800
Cc: public-geolocation <public-geolocation@w3.org>, Richard Barnes <rbarnes@bbn.com>, Martin Thomson <Martin.Thomson@andrew.com>
Message-Id: <01F67DDA-75C6-4AA3-956A-EE3713DF4749@apple.com>
To: Doug Turner <doug.turner@gmail.com>

On Nov 18, 2008, at 9:38 AM, Doug Turner wrote:

> Instead, I think we can do something different and both have a  
> asynchronous API and get the last position the browser saw by adding  
> a new PositionOption:
>
>
> interface PositionOptions {
>    ...
>    attribute unsigned long modifiedSince;
>  };
>
>
> The modifiedSince value specified in (seconds provides a hint that  
> the application would like a cached position as so long as it has  
> been updated within the time specified.  If the UA does not have a  
> cached position, the modifiedSince option will be ignored.

Is this time 'age', as in the Position is at least "modifiedSince"  
seconds old?

An alternative could be if the UA can't provide a position within the  
PositionOptions timeout parameter, it will return the last position  
obtained by the UA, across all pages? This would need a flag supplied  
to let the developer know they are getting potentially stale data.  
Perhaps this can be a Position field in the PositionError that is  
lastPosition, only set when the error code is TIMEOUT?

-- Greg
Received on Wednesday, 19 November 2008 17:15:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 18:13:30 GMT