ADSB/AIS image proxy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user