ADSB/AIS image proxy

This commit is contained in:
2026-07-03 18:48:20 -04:00
parent 4114a0adad
commit 1451145408
3 changed files with 52 additions and 2 deletions

View File

@@ -87,3 +87,8 @@ export async function getAIS() {
aisCacheTs = Date.now();
return aisCache;
}
export function getAISImage(mmsi) {
return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`)
.then(resp => resp.ok ? resp.blob() : null);
}