aprs.me/test
Graham McIntire 47fc071263
Add get_nearby_weather_stations/4 query function with spatial filtering
Implements PostGIS-based query to find weather stations within a radius:
- Uses ST_DWithin for efficient spatial filtering within radius (miles to meters)
- Orders results by ST_Distance (closest first)
- Filters by has_weather, has_position, and time window (default 6h)
- Deduplicates by base_callsign using DISTINCT ON (avoids duplicate SSIDs)
- Returns all weather fields: temp, humidity, pressure, wind, rain
- Configurable limit (default 50) and hours options

Comprehensive test coverage (10 tests):
- Spatial filtering within/outside radius
- Time window filtering
- Base callsign deduplication (most recent SSID)
- Distance ordering verification
- Required field validation
- Edge cases (empty results, no weather data)
2026-03-22 11:27:45 -05:00
..
aprsme Add get_nearby_weather_stations/4 query function with spatial filtering 2026-03-22 11:27:45 -05:00
aprsme_web perf: optimize slow tests - 40% reduction in top 10 slowest tests 2026-03-03 10:47:40 -06:00
assets/js Improve type safety for getTrailId function 2025-07-21 08:36:38 -05:00
integration cleanup 2026-02-07 10:55:19 -06:00
support more tests 2026-02-09 17:21:16 -06:00
types format 2026-02-18 14:49:58 -06:00
test_helper.exs fix some tests 2026-02-09 15:32:09 -06:00