blob: e1d676205fff369c5cdc656f8563e4bb1fca9946 [file] [log] [blame]
Victor Porof6e096922022-06-10 13:01:05 +00001// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into webref
3// (https://github.com/w3c/webref)
4// Source: Geolocation Sensor (https://w3c.github.io/geolocation-sensor/)
5
6[SecureContext,
7 Exposed=(DedicatedWorker, Window)]
8interface GeolocationSensor : Sensor {
9 constructor(optional GeolocationSensorOptions options = {});
10 static Promise<GeolocationSensorReading> read(optional ReadOptions readOptions = {});
11 readonly attribute unrestricted double? latitude;
12 readonly attribute unrestricted double? longitude;
13 readonly attribute unrestricted double? altitude;
14 readonly attribute unrestricted double? accuracy;
15 readonly attribute unrestricted double? altitudeAccuracy;
16 readonly attribute unrestricted double? heading;
17 readonly attribute unrestricted double? speed;
18};
19
20dictionary GeolocationSensorOptions : SensorOptions {
21 // placeholder for GeolocationSensor-specific options
22};
23
24dictionary ReadOptions : GeolocationSensorOptions {
25 AbortSignal? signal;
26};
27
28dictionary GeolocationSensorReading {
29 DOMHighResTimeStamp? timestamp;
30 double? latitude;
31 double? longitude;
32 double? altitude;
33 double? accuracy;
34 double? altitudeAccuracy;
35 double? heading;
36 double? speed;
37};
38
39dictionary GeolocationReadingValues {
40 required double? latitude;
41 required double? longitude;
42 required double? altitude;
43 required double? accuracy;
44 required double? altitudeAccuracy;
45 required double? heading;
46 required double? speed;
47};