From a3724363c8e54c8000da0af6dfe613559df940d2 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sat, 19 Apr 2025 21:50:23 -0500 Subject: [PATCH] Add lat/long and other corrections --- schemas/scanorganic-README.md | 6 ++++++ schemas/scanorganic-v1.0.json | 13 +++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/schemas/scanorganic-README.md b/schemas/scanorganic-README.md index 27af4d8..8909d3a 100644 --- a/schemas/scanorganic-README.md +++ b/schemas/scanorganic-README.md @@ -82,3 +82,9 @@ release, Update 7, plus one patch). It will disappear again when they fly back above that altitude, or jump away. 5. If Status.json does **not** have `BodyName` then clear `status_body_name`. + +#### Latitude / Longitude +While latitude and longitude are not reported with the event data, this event +necessitates being on a planet surface. Pulling the current coordinates from +the `Status.json` should be sufficient to populate the data. The `Status.json` +granularity is quite accurate when on-foot. diff --git a/schemas/scanorganic-v1.0.json b/schemas/scanorganic-v1.0.json index e788b03..e0f6fbc 100644 --- a/schemas/scanorganic-v1.0.json +++ b/schemas/scanorganic-v1.0.json @@ -33,7 +33,7 @@ "type" : "object", "description" : "Contains all properties from the listed events in the client's journal minus the Localised strings and the properties marked below as 'disallowed'", "additionalProperties" : false, - "required" : [ "timestamp", "event", "ScanType", "Genus", "Species", "SystemAddress", "BodyID", "BodyName"], + "required" : [ "timestamp", "event", "ScanType", "Genus", "Species", "Latitude", "Longitude", "SystemAddress", "BodyID", "BodyName"], "properties" : { "timestamp": { "type" : "string", @@ -88,7 +88,16 @@ "type" : "integer" }, "BodyName": { - "type" : "string" + "type" : "string", + "description" : "Must be added by the sender to corroborate BodyID" + }, + "Latitude": { + "type" : "number", + "description" : "Must be added by the sender, generally from Status.json" + }, + "Longitude": { + "type" : "number", + "description" : "Must be added by the sender, generally from Status.json" } }, "patternProperties": {