Utils to process data from orienteering live gps providers with Javascript/Typescript
deno add @orienteering-js/gpsnpx jsr add @orienteering-js/gpsyarn dlx jsr add @orienteering-js/gpspnpm dlx jsr add @orienteering-js/gpsbunx jsr add @orienteering-js/gpsGpsseuranta is a Finnish orienteering live GPS provider.
import { parseInit, parseData } from "@orienteering-js/gps/gpsseuranta";
const init = await fetch(
"https://www.tulospalvelu.fi/gps/20240526_WC_S_M/init.txt"
).then((r) => r.text());
const [mapCallibration, competitors] = parseInit(init);
const data = await fetch(
"https://www.tulospalvelu.fi/gps/20240526_WC_S_M/data.lst"
).then((r) => r.text());
const competitorsRoutesMap = parseData(data);