W3C home > Mailing lists > Public > public-geolocation@w3.org > March 2009

Geolication API level 2 - editor's draft

From: Andrei Popescu <andreip@google.com>
Date: Mon, 16 Mar 2009 16:50:17 +0000
Message-ID: <708552fb0903160950p2a145733pf7ea4e9bd93825f6@mail.gmail.com>
To: public-geolocation <public-geolocation@w3.org>

I have uploaded the first editor's draft for the Geolocation API v2
(or level 2):


The main change is the addition of the Address interface. Following
the evidence presented in the thread at


I concluded that the scheme based on a simplified RFC4119 is the best
choice so far. It is also reasonably close to the proposal made by
Alec Berntson.

One thing we have not discussed is the extension to the
PositionOptions interface. Alec proposed something similar to the

interface PositionOptions {
  const unsigned short COORDS_REQUIRED = 0;  // default
  const unsigned short ADDRESS_REQUIRED = 1;
  const unsigned short EITHER = 2;
  readonly unsigned short positionType;


COORDS_ONLY = The API only returns position objects when coords has
data, address can be null
ADDRESS_ONLY = The API only returns position objects when address has
data, coords can be null
EITHER = The API returns a position object whenever there is data for
either address or coords data.

Should we also have BOTH_REQUIRED as a fourth option?

Received on Monday, 16 March 2009 16:50:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:54 UTC