Comments (7)
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.
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.
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.
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)
- time RFC3339 (ISO8601) always returns+00:00
- Times might be in local time, not GMT
- Missing airplane types/models HOT 1
- Airports count is too low
- General error accessing to API HOT 2
- Live flight request is completely empty HOT 3
- same name for api end point Real-Time Flights and Historical Flights make issue on free plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aviationstack.