MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _esp_alerts

Method _esp_alerts

wardriving.py:1442–1446  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1440 g = data['gps']
1441 g['lat_min'] = lat if g['lat_min'] is None else min(g['lat_min'], lat)
1442 g['lat_max'] = lat if g['lat_max'] is None else max(g['lat_max'], lat)
1443 g['lon_min'] = lon if g['lon_min'] is None else min(g['lon_min'], lon)
1444 g['lon_max'] = lon if g['lon_max'] is None else max(g['lon_max'], lon)
1445 if prev:
1446 # Haversine between consecutive fixes
1447 dlat = math.radians(lat - prev[0])
1448 dlon = math.radians(lon - prev[1])
1449 a = (math.sin(dlat / 2) ** 2 +

Callers

nothing calls this directly

Calls 3

extendMethod · 0.80
valuesMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected