Browse Source

convert flight altitude to meters

pull/82/head
Aaron Parecki 7 years ago
parent
commit
f08de4043e
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scripts/flights.php

+ 1
- 1
scripts/flights.php View File

@ -46,7 +46,7 @@ foreach($flights as $flight) {
'date' => date('Y-m-d H:i:s'), 'date' => date('Y-m-d H:i:s'),
'lat' => $flightData['latitude'], 'lat' => $flightData['latitude'],
'lng' => $flightData['longitude'], 'lng' => $flightData['longitude'],
'altitude' => $flightData['altitude'],
'altitude' => $flightData['altitude']*100*0.3048,
'heading' => $flightData['heading'], 'heading' => $flightData['heading'],
'speed' => $flightData['groundspeed'], 'speed' => $flightData['groundspeed'],
]; ];

Loading…
Cancel
Save