From 330f9fbf1c4c1ecc4c64eaf2f697d48f0d019c53 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Wed, 22 Nov 2023 17:03:21 +0100 Subject: [PATCH] Adapt to virtual sensor changes in w3c/sensors#475 w3c/sensors#475 removed the "virtual sensor type" item from the "virtual sensor metadata" struct and turned it into a string that is referenced from the automation bits as well as (optionally) defined by a sensor type. Adapt to it here by removing mentions of `[=virtual sensor metadata/virtual sensor type=]` from the spec and adding virtual sensor types to each sensor type defined here. --- index.bs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 884eac9..09fd444 100644 --- a/index.bs +++ b/index.bs @@ -134,6 +134,9 @@ The Geolocation Sensor has an associated {{PermissionName}} which is The Geolocation Sensor is a [=policy-controlled feature=] identified by the string "geolocation". Its [=default allowlist=] is `'self'`. +The Geolocation Sensor has an associated [=virtual sensor type=] which is +"geolocation". + A latest geolocation reading is a [=latest reading=] for a {{Sensor}} of Geolocation Sensor sensor type. It includes [=map/entries=] whose [=map/keys=] are "latitude", "longitude", "altitude", "accuracy", "altitudeAccuracy", "heading", "speed" @@ -320,9 +323,9 @@ This section extends [[GENERIC-SENSOR#automation]] by providing [=Geolocation Se The [=per-type virtual sensor metadata=] [=map=] must have the following [=map/entry=]: : [=map/key=] -:: "`geolocation`" +:: "[=geolocation virtual sensor type|geolocation=]" : [=map/value=] -:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/virtual sensor type=] is [=Geolocation Sensor=] and [=reading parsing algorithm=] is the [=geolocation reading parsing algorithm=]. +:: A [=virtual sensor metadata=] whose [=virtual sensor metadata/reading parsing algorithm=] is the [=geolocation reading parsing algorithm=].

Geolocation reading parsing algorithm