hasValidFix
function hasValidFix(c): c is Contact & { gpsLat: number; gpsLon: number };Defined in: src/model/types.ts:108
True iff the contact carries a usable WGS84 fix: both coords present, not the 0/0 “no GPS” sentinel, and within valid lat/lon ranges. Corrupt adverts can yield out-of-range coords — treat those as no fix.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
c | Contact |
Returns
Section titled “Returns”c is Contact & { gpsLat: number; gpsLon: number }