I’m building a web app with flight data and need to get a bunch of flight statuses all at once, then store and use them on sql on my server. Does anyone know if there’s anyway to get more than 15 results from DirectFlight? It will speed up my app considerably…
$result = $soap->Enroute(‘KORD’,15,‘airline’,0);
And the first item in the result (before the array of enroute structs) will be an int for the next_offset to use. Then request:
$result = $soap->Enroute(‘KORD’,15,‘airline’,next_offset);
Where next_offset is the value that was returned to you in the previous query. Wash, rinse, and repeat until you have all the results you want or get a next_offset of -1, which means no more results are available.
I really appreciate all the help you’re giving. One additional question… is there a way to quickly separate this data out in PHP? I know how to print the data out of the array, but I’m wondering if there’s a way to get the same data formatted in XML? I can separate that out really quickly and easily. I’ve seen a lot of samples of it on the site, but I don’t see a quick sample for a way to get the same data in XML.