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

[public-geolocation] <none>

From: Alec Berntson <alecb@windows.microsoft.com>
Date: Thu, 28 Aug 2008 22:04:42 -0700
To: Andrei Popescu <andreip@google.com>, "public-geolocation@w3.org" <public-geolocation@w3.org>
Message-ID: <D8939A2F7A8C124ABE6075E08C52CDCA059B6CAAF8@TK5-EXMBX-W603v.wingroup.windeploy.ntdev.microsoft.com>
Andrei,
  After looking at the geolocation API spec more closely, I was hoping we could clarify the watchPosition() process. Does the 2 step flow below imply the watchPosition() first fires a 'single shot' request to get the current location, and then listens to updates?
The watchPosition() takes one, two or three arguments. When called, it must immediately return and then asynchronously start a watch process defined as the following set of steps:

 1.  Acquire a new Position<http://dev.w3.org/geo/api/spec-source.html#position> object. If successful, invoke the associated successCallback with a Position<http://dev.w3.org/geo/api/spec-source.html#position> object as an argument. If the attempt fails, and the method was invoked with a non-null errorCallback argument, this method must invoke the errorCallback with a PositionError<http://dev.w3.org/geo/api/spec-source.html#position-error> object as an argument.
 2.  Acquire a new Position<http://dev.w3.org/geo/api/spec-source.html#position> object and invoke the appropriate callback every time the implementation determines that the position of the hosting device has changed.
Thanks,
    Alec
Received on Friday, 29 August 2008 05:05:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 August 2009 20:54:07 GMT