geolocation-sensor.idl (1233B)
1 // 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)] 8 interface 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 20 dictionary GeolocationSensorOptions : SensorOptions { 21 // placeholder for GeolocationSensor-specific options 22 }; 23 24 dictionary ReadOptions : GeolocationSensorOptions { 25 AbortSignal? signal; 26 }; 27 28 dictionary 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 };