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 10:06:52 -0800
Cc: Doug Turner <doug.turner@gmail.com>, Aaron Boodman <aa@google.com>, public-geolocation <public-geolocation@w3.org>, Richard Barnes <rbarnes@bbn.com>, Martin Thomson <Martin.Thomson@andrew.com>
Message-Id: <F93BB08A-0BDC-4495-9662-ABF7A7080233@apple.com>
To: Andrei Popescu <andreip@google.com>

+1, very nice and clear. -- Greg

On Nov 19, 2008, at 10:03 AM, Andrei Popescu wrote:

> Ok, so for the following call
>
> geolocation.getCurrentPermission(successCallback, errorCallback,
> {modifiedSince:600, timeout:0});
>
> the new behavior is the following:
>
> - if the page has no permission, errorCallback is invoked with
> PERMISSION_DENIED.
> - else
>  * if it doesn't have any cached position, errorCallback is invoked
> with POSITION_UNAVAILABLE.
>  * else
>     ** if the cached position is older than 10 mins, errorCallback is
> invoked with POSITION_UNAVAILABLE
>     ** else successCallback is immediately invoked with the cached  
> position
Received on Wednesday, 19 November 2008 18:07:32 GMT

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