Link Ground Zero weather lookup coordinates
This commit is contained in:
@@ -16,6 +16,15 @@
|
||||
"center_latitude": 37.5925,
|
||||
"center_longitude": -122.4995
|
||||
},
|
||||
"weather_lookup_metadata": {
|
||||
"lookup_latitude": 37.5925,
|
||||
"lookup_longitude": -122.4995,
|
||||
"coordinate_source": "tile_center",
|
||||
"primary_provider": "open-meteo",
|
||||
"fallback_provider": "noaa-nws",
|
||||
"fallback_provider_eligible": true,
|
||||
"lookup_rule": "Use the Ground Zero tile center latitude/longitude for live MVP weather and temperature snapshots."
|
||||
},
|
||||
"status": "source_data_found",
|
||||
"biome_primary": "coastal_california_scrub_woodland",
|
||||
"biome_secondary": [
|
||||
|
||||
@@ -113,6 +113,9 @@
|
||||
"growing_season_metadata": {
|
||||
"$ref": "#/$defs/growing_season_metadata"
|
||||
},
|
||||
"weather_lookup_metadata": {
|
||||
"$ref": "#/$defs/weather_lookup_metadata"
|
||||
},
|
||||
"notes": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -241,6 +244,46 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"weather_lookup_metadata": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"lookup_latitude",
|
||||
"lookup_longitude",
|
||||
"coordinate_source",
|
||||
"primary_provider",
|
||||
"fallback_provider_eligible",
|
||||
"lookup_rule"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"lookup_latitude": {
|
||||
"type": "number",
|
||||
"minimum": -90,
|
||||
"maximum": 90
|
||||
},
|
||||
"lookup_longitude": {
|
||||
"type": "number",
|
||||
"minimum": -180,
|
||||
"maximum": 180
|
||||
},
|
||||
"coordinate_source": {
|
||||
"type": "string",
|
||||
"enum": ["tile_center", "manual_override", "provider_grid_point"]
|
||||
},
|
||||
"primary_provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"fallback_provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"fallback_provider_eligible": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"lookup_rule": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"source": {
|
||||
"type": "object",
|
||||
"required": ["source_kind", "source_name", "coverage_status"],
|
||||
|
||||
@@ -64,6 +64,19 @@ CREATE TABLE IF NOT EXISTS terrain_tile_growing_season_metadata (
|
||||
FOREIGN KEY (tile_id) REFERENCES terrain_tiles(tile_id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS terrain_tile_weather_lookup_metadata (
|
||||
tile_id TEXT PRIMARY KEY,
|
||||
lookup_latitude REAL NOT NULL CHECK (lookup_latitude >= -90 AND lookup_latitude <= 90),
|
||||
lookup_longitude REAL NOT NULL CHECK (lookup_longitude >= -180 AND lookup_longitude <= 180),
|
||||
coordinate_source TEXT NOT NULL CHECK (coordinate_source IN ('tile_center', 'manual_override', 'provider_grid_point')),
|
||||
primary_provider TEXT NOT NULL DEFAULT 'open-meteo',
|
||||
fallback_provider TEXT NOT NULL DEFAULT '',
|
||||
fallback_provider_eligible INTEGER NOT NULL DEFAULT 0 CHECK (fallback_provider_eligible IN (0, 1)),
|
||||
lookup_rule TEXT NOT NULL DEFAULT '',
|
||||
generated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (tile_id) REFERENCES terrain_tiles(tile_id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS terrain_tile_neighbors (
|
||||
tile_id TEXT NOT NULL,
|
||||
direction TEXT NOT NULL CHECK (direction IN ('n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw')),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"generated_at_utc": "2026-05-16T05:58:06Z",
|
||||
"generated_at_utc": "2026-05-16T09:06:51Z",
|
||||
"source_registry": "Data/Tiles/ground_zero_tiles.json",
|
||||
"generation_rule": "Every source-backed/generated tile with center coordinates is emitted; unknown placeholders are skipped.",
|
||||
"tiles": [
|
||||
@@ -8,8 +8,11 @@
|
||||
"tile_id": "gz_us_ca_pacifica_utm10n_e544_n4160",
|
||||
"center_latitude": 37.5925,
|
||||
"center_longitude": -122.4995,
|
||||
"coordinate_source": "tile_center",
|
||||
"provider": "open-meteo",
|
||||
"lookup_rule": "Use tile center latitude/longitude for live MVP weather and temperature snapshots."
|
||||
"fallback_provider": "noaa-nws",
|
||||
"fallback_provider_eligible": true,
|
||||
"lookup_rule": "Use the Ground Zero tile center latitude/longitude for live MVP weather and temperature snapshots."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user