Code Monkey home page Code Monkey logo

aviationstack's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aviationstack's Issues

Times might be in local time, not GMT

I did a test query on this flight.

https://api.aviationstack.com/v1/flights?access_key=YOURKEY&flight_date=2020-02-04&flight_number=428&dep_icao=WSSS&arr_icao=WMKP

this was returned.

{"pagination":{"limit":100,"offset":0,"count":1,"total":1},"data":[{"flight_date":"2020-02-04","flight_status":"landed","departure":{"airport":"Singapore Changi","timezone":"Asia/Singapore","iata":"SIN","icao":"WSSS","terminal":"1","gate":"D35","delay":13,"scheduled":"2020-02-04T20:25:00+00:00","estimated":"2020-02-04T20:25:00+00:00","actual":"2020-02-04T20:38:00+00:00","estimated_runway":"2020-02-04T20:38:00+00:00","actual_runway":"2020-02-04T20:38:00+00:00"},"arrival":{"airport":"Penang International","timezone":"Asia/Kuala_Lumpur","iata":"PEN","icao":"WMKP","terminal":"I","gate":null,"baggage":null,"delay":null,"scheduled":"2020-02-04T21:50:00+00:00","estimated":"2020-02-04T21:50:00+00:00","actual":"2020-02-04T21:33:00+00:00","estimated_runway":"2020-02-04T21:33:00+00:00","actual_runway":"2020-02-04T21:33:00+00:00"},"airline":{"name":"Scoot","iata":"TR","icao":"TGW"},"flight":{"number":"428","iata":"TR428","icao":"TGW428","codeshared":null},"aircraft":{"registration":"9V-TAU","iata":"A320","icao":"A320","icao24":"76D035"},"live":null}]}

The actual timings here (2020-02-04T20:38:00+00:00 and 2020-02-04T21:33:00+00:00 appears to be in local time (GMT+8), not +0.

Why am i so sure? I was one of the pilot operating this flight.

Cannot pull in live data from API for the flights

Hi,

I am trying to pull in live data from the API for the flights but it keeps returning a null response in the live section of the json.

I am using the following command

https://api.aviationstack.com/v1/flights?access_key=*access_kay*&limit=10&offset=0

I am using a basic plan? I get the following response

{
"pagination": {
"limit": 10,
"offset": 0,
"count": 10,
"total": 9594200
},
"data": [ ...
{
"flight_date": "2022-05-18",
"flight_status": "scheduled",
"departure": {
"airport": "Kingsford Smith",
"timezone": "Australia/Sydney",
"iata": "SYD",
"icao": "YSSY",
"terminal": null,
"gate": null,
"delay": null,
"scheduled": "2022-05-18T03:15:00+00:00",
"estimated": "2022-05-18T03:15:00+00:00",
"actual": null,
"estimated_runway": null,
"actual_runway": null
},
"arrival": {
"airport": "Adelaide International Airport",
"timezone": "Australia/Adelaide",
"iata": "ADL",
"icao": "YPAD",
"terminal": null,
"gate": null,
"baggage": null,
"delay": null,
"scheduled": "2022-05-18T05:00:00+00:00",
"estimated": "2022-05-18T05:00:00+00:00",
"actual": null,
"estimated_runway": null,
"actual_runway": null
},
"airline": {
"name": "Qantas",
"iata": "QF",
"icao": "QFA"
},
"flight": {
"number": "7448",
"iata": "QF7448",
"icao": "QFA7448",
"codeshared": null
},
"aircraft": null,
"live": null
}
]
}

If someone can give some insight into what is going wrong, I would be most grateful.

Thanks

Luke

General error accessing to API

Hi,

I have using AviationStack API for several years, and starting from December, I cannot connect to it anymore, due to the following error when connecting to any API endpoint:

{"error":{"code":"Argument 1 passed to App\Legacy\SharedFunctions::mysql_fetch_array() must be an instance of PDOStatement, instance of Doctrine\DBAL\ForwardCompatibility\Result given, called in /opt/component/app/Legacy/AviationstackFunctions.php on line 2190","message":"Argument 1 passed to App\Legacy\SharedFunctions::mysql fetch array() must be an instance of PDOStatement, instance of Doctrine\DBAL\ForwardCompatibility\Result given, called in /opt/component/app/Legacy/AviationstackFunctions.php on line 2190"}}

Tried from API doc webpage, Postman, Java code, etc, so the problem is not on the client side.

same name for api end point Real-Time Flights and Historical Flights make issue on free plan

Real-Time Flights Available on: All plans so all the option sould work using a free plan key like the optional flight_date parameter

cf api documemention Real-Time Flights Available on: All plans
flight_date [Optional] Filter your results by providing a flight date in the format YYYY-MM-DD. Example: 2019-02-31

https://api.aviationstack.com/v1/flights
? access_key = XXXX

but if we provide the flight_date parameter we get the error :
"error": {
"code": "function_access_restricted",
"message": "Your current subscription plan does not support this API function."

Because the api end on Historical Flights Available point because the name for both are same '/v1/flights' and
Historical Flights is not free plan !

Historical Flights Available on: Basic Plan and higher

https://api.aviationstack.com/v1/flights
? access_key = XXXX
& flight_date = 2019-12-11

solution => change api enpoint for one off them or change the Real-Time Flights response to return only flight off the day ( not the case actualy seem to return also J-1 flight may be more

Airports count is too low

The total of 6471 airports doesn't seemt to be up to date:
IATA counted cca 9000 3 years ago, ICAO - 10K.

What is the data source? When was the last time it was updated?

time RFC3339 (ISO8601) always returns+00:00

Hello Aviation Stack team,

I am testing the API functionalities and I believe that the time RFC3339 (ISO8601) fields are always returning +00:00 even though the time shown is always local.
For example, running this query http://api.aviationstack.com/v1/flights?access_key=c13216e8c004047e54ea58de41784ba7&flight_iata=LX3047

Returns:
(...)
{"airport":"Heathrow","timezone":"Europe/London","iata":"LHR","icao":"EGLL","terminal":"2","gate":"B48","baggage":"8","delay":null,"scheduled":"2020-06-30T07:40:00+00:00","estimated":"2020-06-30T07:40:00+00:00","actual":"2020-06-30T07:33:00+00:00","estimated_runway":"2020-06-30T07:27:00+00:00","actual_runway":"2020-06-30T07:27:00+00:00"}
(...)

Nevertheless, this is local London time as shown in the image:
image

These fields should return:

"2020-06-30T07:40:00+01:00"

or:

"2020-06-30T06:40:00+00:00"

Thank you
Kind Regards,
Emanuel Varela

API return only empty arrays

I'm calling the flights endpoint with valid requests which worked previously but today the server response only with empty arrays.
I test with legit airports and even airplanes that are currently in the air and no data is returned from the server,also no error code just an empty array.

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.