summaryrefslogtreecommitdiff
path: root/scripts/flights.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-05-17 11:03:46 +0200
committerAaron Parecki <aaron@parecki.com>2017-05-17 11:03:46 +0200
commitf08de4043ee6b1a9a4a2282b1ea417f378a82164 (patch)
tree23ccbdfc337e5cbdb8153924ede4d54f22cd922f /scripts/flights.php
parentd13425af4fb44f45753868706d2d092c7fbc78b7 (diff)
convert flight altitude to meters
Diffstat (limited to 'scripts/flights.php')
-rw-r--r--scripts/flights.php2
1 files changed, 1 insertions, 1 deletions
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'],
];