From b8a0f716614a0a03807ea8987915f0ae8bf26757 Mon Sep 17 00:00:00 2001 From: niczem Date: Wed, 3 Jan 2024 00:13:10 +0100 Subject: [PATCH] position-api getLocation function identifier fixed for mst --- src/classes/sources/ais/mst.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/sources/ais/mst.ts b/src/classes/sources/ais/mst.ts index 7a092b0..1787b85 100644 --- a/src/classes/sources/ais/mst.ts +++ b/src/classes/sources/ais/mst.ts @@ -21,7 +21,7 @@ class MyShipTracking extends Source { getLocation = async (mmsi: number) => { const result = await this.fetch( - "https://www.myshiptracking.com/vessels/mmsi-310627000", + "https://www.myshiptracking.com/vessels/mmsi-"+parseInt(mmsi), { accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",