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.
- Open-Meteoweather source
- 2500max track points
- 50 maccuracy filter
- 8 m / 8 smin move to keep a point
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.
| Constant | Value |
|---|---|
| MAX_TRACK_POINTS | 2500 |
| MAX_ACCURACY_M | 50 meters |
| MIN_TRACK_METERS | 8 meters |
| MIN_TRACK_MS | 8000 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.
- It does not replace CalTopo, Avenza, or SARTopo for operational mapping.
- Open-Meteo is not an official National Weather Service product.
- iOS Home Screen GPS has platform limits documented in gpsTrack.ts; Safari tabs behave differently.
- Satellite tiles depend on ArcGIS hosts allowed in the Content-Security-Policy.
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.
All K9 SAR Log features are indexed in one place.