ADSB/AIS image proxy
This commit is contained in:
@@ -89,6 +89,6 @@ export async function getAIS() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getAISImage(mmsi) {
|
export function getAISImage(mmsi) {
|
||||||
return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`)
|
return fetch(`https://www.marinetraffic.com/getAssetDefaultPhoto/?photo_size=800&asset_type_id=0&asset_id=${mmsi}`,
|
||||||
.then(resp => resp.blob());
|
{headers: {'User-Agent': 'Mozilla/5.0', 'Referer': 'https://www.marinetraffic.com/'}}).then(resp => resp.blob());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user