K9 SAR Log

Feature

Weather and GPS

Weather and GPS in K9 SAR Log attach a confirmed Open-Meteo reading to the session and a device trail to the problem while the dog works it.

Track points are kept when the fix is within 50 meters, and a live trail stops at 2500 points so a long run cannot blow past IndexedDB and sync limits.

Confirmed weather, not a silent forecast

On open, the app fetches Open-Meteo for the session coordinates and asks you to confirm the reading before problems start.

Temperature, wind, and cloud cover stay on the session so later notes refer to the same snapshot the team accepted in the field.

How the GPS trail thins itself

A new track point is kept when the dog has moved at least 8 meters or 8 seconds have passed, unless the reading is less accurate than 50 meters after the first fix.

The trail hard-stops at 2500 points. That cap is intentional: an unbounded polyline is a sync and storage failure waiting for a long trailing problem.

GPS trail constants from gpsTrack.ts
ConstantValue
MAX_TRACK_POINTS2500
MAX_ACCURACY_M50 meters
MIN_TRACK_METERS8 meters
MIN_TRACK_MS8000 ms

What the map shows

The problem map can show the trail on OpenStreetMap or satellite basemap tiles. Collapsing weather and map keeps the problem form usable on a small phone.

Native field-map replacement for CalTopo is explicitly parked — see docs/FIELD-MAP.md — and is not this PWA surface.

What it does not do

This is a training log with a trail, not a navigation or search-management map.

Common questions

Where does session weather come from?

Open-Meteo, fetched for the session coordinates and confirmed by the handler before problems are logged.

How many GPS points can one trail hold?

A live trail caps at 2500 points.

When does K9 SAR Log drop a GPS reading?

After the first fix, readings less accurate than 50 meters are dropped. Closer-in-time points also need at least 8 meters of movement or 8 seconds elapsed to be kept.

Is this a CalTopo replacement?

No. Native field-map work is parked in a separate plan and is not a K9 PWA feature.