Radio sonde on map

This commit is contained in:
2026-09-13 09:34:41 -04:00
parent 0ebf997924
commit 6c4310753f

View File

@@ -14,7 +14,13 @@ export async function getSondes() {
sondeCache = Object.entries(data).map(([id, sonde]) => {
const t = sonde.latest_telem ?? {};
const path = sonde.path ?? [];
const history = (sonde.path ?? []).map(([latitude, longitude, altitude]) => ({
id,
latitude,
longitude,
altitude
}));
return {
id,
@@ -45,7 +51,7 @@ export async function getSondes() {
ref_datetime: t.ref_datetime,
ref_position: t.ref_position,
sdr_device_idx: t.sdr_device_idx,
history: path
history
};
});