Code Monkey home page Code Monkey logo

Comments (7)

jinxyCat14 avatar jinxyCat14 commented on September 17, 2024

Luke,

'live' is null when there is no live data for the flight (not being cute)

This makes sense because look at the "flight_status" variable - its "scheduled" which means the aircraft hasn't taken off, it just has a flight plan filed, definitely isn't airborne.

If you're only looking for live data then filter your API request to 'flight_status' : 'active' to only get flights that are currently in the air which have a better chance of containing 'live' data which will look something like this instead of null:
'live': {'updated': '2022-10-07T22:41:04+00:00', 'latitude': 56.11, 'longitude': 40.45, 'altitude': 10668, 'direction': 88, 'speed_horizontal': 926, 'speed_vertical': 0, 'is_ground': False}}]

Hope this helps! I've been knee deep in this API for a class so getting fairly familiar with it, let me know if you have other questions!

-jinxyCat14

from aviationstack.

CoreyBin avatar CoreyBin commented on September 17, 2024

Luke,

'live' is null when there is no live data for the flight (not being cute)

This makes sense because look at the "flight_status" variable - its "scheduled" which means the aircraft hasn't taken off, it just has a flight plan filed, definitely isn't airborne.

If you're only looking for live data then filter your API request to 'flight_status' : 'active' to only get flights that are currently in the air which have a better chance of containing 'live' data which will look something like this instead of null: 'live': {'updated': '2022-10-07T22:41:04+00:00', 'latitude': 56.11, 'longitude': 40.45, 'altitude': 10668, 'direction': 88, 'speed_horizontal': 926, 'speed_vertical': 0, 'is_ground': False}}]

Hope this helps! I've been knee deep in this API for a class so getting fairly familiar with it, let me know if you have other questions!

-jinxyCat14

Hi jinxyCat14,

If the lack of real-time data is understandable, then why is the data of aircraft also null, I need this data.So I'm trying to figure this out.

Looking forward to your reply.

Jaryn

from aviationstack.

jinxyCat14 avatar jinxyCat14 commented on September 17, 2024

Good question, the other fields that are null are all sections that may not be populated yet. A flight that is only scheduled obviously doesn’t have any ‘actual’ data - it only exists inside the computer system. The null fields will become filled with data when the flight becomes ‘active’.
-jinxyCat14

from aviationstack.

JonasJ96 avatar JonasJ96 commented on September 17, 2024

Did you ever figure this out? @lukemenziesAA
I have having the same issue, it is also present for ''active'' flights..

from aviationstack.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.