Skip to content

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.

ParameterType
cContact

c is Contact & { gpsLat: number; gpsLon: number }