Utils to process data from orienteering live gps providers with Javascript/Typescript
deno add @orienteering-js/gps
npx jsr add @orienteering-js/gps
yarn dlx jsr add @orienteering-js/gps
pnpm dlx jsr add @orienteering-js/gps
bunx jsr add @orienteering-js/gps
Gpsseuranta 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);