From f08de4043ee6b1a9a4a2282b1ea417f378a82164 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 17 May 2017 11:03:46 +0200 Subject: convert flight altitude to meters --- scripts/flights.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/flights.php b/scripts/flights.php index 9ea36a9..e6f190f 100644 --- a/scripts/flights.php +++ b/scripts/flights.php @@ -46,7 +46,7 @@ foreach($flights as $flight) { 'date' => date('Y-m-d H:i:s'), 'lat' => $flightData['latitude'], 'lng' => $flightData['longitude'], - 'altitude' => $flightData['altitude'], + 'altitude' => $flightData['altitude']*100*0.3048, 'heading' => $flightData['heading'], 'speed' => $flightData['groundspeed'], ]; -- cgit v1.2.3