Re: Geolocation API Level 2 spec updated

W dniu 2011-06-30 17:05, Andrei Popescu pisze:
> Hi,
>
> Just wanted to let you know I have updated the "Geolocation API Level
> 2" spec to match the V1 document:
>
> http://dev.w3.org/cvsweb/geo/api/spec-source-v2.html.diff?r1=1.19;r2=1.20;f=h
>
> The diff to V1 is now the Address interface, the optional 'address'
> property on the Position interface and the 'Coordinates.verticalSpeed'
> property just added by Steve.
>
> Thanks,
> Andrei
Some editorial remarks:
>  Future versions of the API may allow additional attributes that 
> provide other information about this position (e.g. street addresses).
Either remove this or change "street addresses" to something else as 
street address is a part of this and not future API.

>  interface Address {
>     readonly attribute DOMString country;
>     readonly attribute DOMString region;
>     readonly attribute DOMString county;
>     readonly attribute DOMString city;
>     readonly attribute DOMString street;
>     readonly attribute DOMString streetNumber;
>     readonly attribute DOMString premises;
>     readonly attribute DOMString additionalInformation;
>     readonly attribute DOMString postalCode;
>   };
> All of the Address attributes are optional. If an implementation 
> cannot provide a particular attribute, its value must be null.

If they are optional then shouldn't we add '?' to IDL?

-- 
Wojciech Masłowski
Engeneering CORE Wrocław
Opera Software ASA
http://www.opera.com

Received on Thursday, 30 June 2011 15:28:21 UTC