All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need Flight Data From A Departure City But Just For Today
PostPosted: Sun Jan 29, 2017 2:46 pm 
Offline
salesai - FlightAware user avatar

Joined: Sat Jan 28, 2017 11:53 am
Posts: 3
Is there a straightforward way to obtain only the flight information for a specific flight number departing from a specific origin but on a specific day (specifically today)?

An example request would look like

https://flightxml.flightaware.com/json/FlightXML2/
... FlightInfoEx?ident=AAL0001&origin=KJFK&what=what

It's the what=what part I'm missing. I'm uncertain as how to code "today" and in what field.


Top
 Profile  
 
 Post subject: Re: Need Flight Data From A Departure City But Just For Toda
PostPosted: Mon Jan 30, 2017 2:27 pm 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 1423
Location: FlightAware WHQ
Just use FlightInfoEx with a large enough howMany value, and your application code can look through the results for the specific flight it wants. (Note that howMany values of up to 14 have the same cost as 1, so there's no financial benefit for requesting fewer.)


Top
 Profile  
 
 Post subject: Re: Need Flight Data From A Departure City But Just For Toda
PostPosted: Tue Jan 31, 2017 7:42 am 
Offline
salesai - FlightAware user avatar

Joined: Sat Jan 28, 2017 11:53 am
Posts: 3
Thank you and understood. The question then boils down to which of the specific flights pertains to today, after translating date/time to local, keeping in mind that the flight may have already departed. Is it just "filed_departuretime"?


Top
 Profile  
 
 Post subject: Re: Need Flight Data From A Departure City But Just For Toda
PostPosted: Wed Feb 01, 2017 12:01 pm 
Offline
FlightAware Staff
bovineone - FlightAware user avatar

Joined: Wed Jul 27, 2005 3:00 am
Posts: 1423
Location: FlightAware WHQ
filed_departuretime is the time when the flight is originally supposed to depart from the origin airport, which I think is indeed what you're asking. To determine when it was originally supposed to arrived, compute the result of (filed_departuretime+filed_ete).

If you want to determine if the flight has actually departed, check if (actualdeparturetime > 0)


Top
 Profile  
 
 Post subject: Re: Need Flight Data From A Departure City But Just For Toda
PostPosted: Wed Feb 01, 2017 5:11 pm 
Offline
salesai - FlightAware user avatar

Joined: Sat Jan 28, 2017 11:53 am
Posts: 3
Quite clear. Thanks again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: