Comment

Comment by hackmiester

Here is how to get the equivalent data on a Delta flight.

    $ curl https://wifi.delta.com/api/flight-data | jq
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   448  100   448    0     0   5600      0 --:--:-- --:--:-- --:--:--  5743
    {
      "timestamp": "2023-07-11T14:54:41Z",
      "eta": "17:48",
      "flightDuration": 278,
      "flightNumber": "DAL786",
      "latitude": 39.723472595214844,
      "longitude": -97.1514205932617,
      "noseId": "3879",
      "paState": false,
      "vehicleId": "N879DN",
      "destination": "KPDX",
      "origin": "KATL",
      "flightId": "N879DN_SF_20230711121358",
      "airspeed": null,
      "airTemperature": 24,
      "altitude": 33922,
      "distanceToGo": 179,
      "doorState": "Closed",
      "groundspeed": 442,
      "heading": -73,
      "timeToGo": 174,
      "wheelWeightState": "Off"
    }
And a fun snippet for you.

    $ curl -s https://wifi.delta.com/api/flight-data | jq -r '"https://maps.google.com/?q=", .latitude, ",", .longitude' | tr -d '\n'; echo
    https://maps.google.com/?q=40.5615234375,-101.2824478149414
parent hackmiester 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton