Attempting to use SearchBirdseyeInFlight, but No Results


#1

Here is the code:


$query = "{match ident BAW*} {false InAir} {true arrived}";
$params = array("query" => $query,"howMany" => 15,"offset" => 0);
$result = $client->SearchBirdseyeInFlight($params);
print_r($result);

The print just returns this:


SoapFault Object ( [message:protected] => no results [string:Exception:private] => [code:protected] => 0 [file:protected] => /path/to/page/test.php [line:protected] => 20 [trace:Exception:private] => Array ( [0] => Array ( [file] => /path/to/page/test.php [line] => 20 [function] => __call [class] => SoapClient [type] => -> [args] => Array ( [0] => SearchBirdseyeInFlight [1] => Array ( [0] => Array ( [query] => {match ident BAW*} {false InAir} {true arrived} [howMany] => 15 [offset] => 0 ) ) ) ) [1] => Array ( [file] => /path/to/page/test.php [line] => 20 [function] => SearchBirdseyeInFlight [class] => SoapClient [type] => -> [args] => Array ( [0] => Array ( [query] => {match ident BAW*} {false InAir} {true arrived} [howMany] => 15 [offset] => 0 ) ) ) ) [previous:Exception:private] => [faultstring] => no results [faultcode] => CLIENT [detail] => stdClass Object ( [errorInfo] => stdClass Object ( [errorCode] => NONE ) ) 

I know there are flights that meet these criteria.


#2

And now Search doesn’t return an arrivalTime. Everything else is returned, but arrivalTime = 0.

For example:


stdClass Object ( [faFlightID] => BAW68-1400737420-airline-0393:0 [ident] => BAW68 [prefix] => H [type] => B763 [suffix] => Z [origin] => KPHL [destination] => EGLL [timeout] => ok [timestamp] => 1400985132 [departureTime] => 1400984381 [firstPositionTime] => 1400984381 [arrivalTime] => 0 [longitude] => -73.78473 [latitude] => 40.11447 [lowLongitude] => -75.21924 [lowLatitude] => 39.79821 [highLongitude] => -73.78473 [highLatitude] => 40.11447 [groundspeed] => 435 [altitude] => 237 [heading] => 67 [altitudeStatus] => [updateType] => TA [altitudeChange] => C [waypoints] => 39.867 -75.233 39.85 -75.167 39.85 -75.133 39.85 -75.1 39.85 -75.1 39.833 -75.067 39.833 -75.033 39.833 -75.017 39.833 -75 39.833 -74.967 39.817 -74.933 39.817 -74.917 39.817 -74.9 39.817 -74.883 39.817 -74.867 39.783 -74.7 39.783 -74.7 39.8 -74.617 39.8 -74.483 39.8 -74.45 39.8 -74.433 39.817 -74.417 39.817 -74.35 39.817 -74.3 39.817 -74.217 39.817 -74.15 39.883 -74.017 39.917 -73.95 39.983 -73.833 40.05 -73.717 40.1 -73.617 40.15 -73.533 40.233 -73.383 40.233 -73.367 40.283 -73.283 40.4 -73.1 40.45 -73 40.683 -72.6 40.733 -72.35 40.8 -72.1 40.917 -71.617 41.067 -70.933 41.167 -70.483 41.267 -70.017 41.617 -69.5 43.15 -67 44.017 -64.667 44.85 -62.283 46.567 -56.6 47 -54.867 47.483 -52.85 47.7 -52.183 48.083 -51 48.517 -49.583 49.25 -46.983 52.283 -30 52.683 -24.583 52.783 -15 52.15 -5.85 52.15 -5.85 52.15 -5.85 51.983 -5.0333 51.883 -4.0333 51.867 -3.9 51.833 -3.55 51.817 -3.3167 51.8 -3.2 51.767 -2.8833 51.767 -2.85 51.75 -2.8 51.733 -2.65 51.717 -2.4167 51.683 -2.1833 51.633 -1.7167 51.6 -1.45 51.6 -1.4 51.583 -1.4 51.583 -1.3333 51.567 -1.2333 51.55 -1.1167 51.55 -1.0333 51.517 -0.85 51.517 -0.8 51.5 -0.71667 51.483 -0.58333 51.467 -0.48333 51.467 -0.45 ) 0 stdClass Object ( [faFlightID] => BAW2166-1400737422-airline-0201:0 [ident] => BAW2166 [prefix] => H [type] => B772 [suffix] => L [origin] => KTPA [destination] => EGKK [timeout] => ok [timestamp] => 1400985120 [departureTime] => 1400970000 [firstPositionTime] => 1400970050 [arrivalTime] => 0 [longitude] => -42.5296 [latitude] => 43.59051 [lowLongitude] => -82.56667 [lowLatitude] => 27.68582 [highLongitude] => -42.5296 [highLatitude] => 43.59051 [groundspeed] => 548 [altitude] => 380 [heading] => 76 [altitudeStatus] => [updateType] => TP [altitudeChange] => [waypoints] => 27.967 -82.517 27.917 -82.45 27.9 -82.417 27.85 -82.333 27.783 -82.25 27.733 -82.183 27.717 -82.15 27.733 -82.067 27.75 -81.983 27.767 -81.933 27.783 -81.85 27.817 -81.667 27.817 -81.633 27.833 -81.617 27.867 -81.383 27.9 -81.217 27.9 -81.2 27.917 -81.1 27.95 -80.983 27.95 -80.933 27.95 -80.933 27.967 -80.85 27.983 -80.783 28 -80.7 28 -80.7 28.067 -80.367 28.117 -80.067 28.15 -79.917 28.317 -78.967 28.467 -78 28.7 -76.55 28.717 -76.533 28.85 -76.35 29.15 -75.95 30.567 -73.95 32.033 -71.767 33 -70.283 33.3 -69.8 35.283 -66.467 36.133 -64.933 36.533 -64.167 38.5 -60.267 39.433 -57.867 40.083 -56.783 40.833 -55 41.233 -53.983 41.633 -52.95 42.4 -50.867 42.917 -46.05 45.067 -42 47.317 -30 48 -8 49.183 -2.25 49.217 -2.0333 49.233 -2.0333 49.267 -1.9833 49.55 -1.7333 49.6 -1.6833 49.817 -1.4667 50 -1.3 50.017 -1.2833 50.2 -1.1167 50.467 -0.85 50.6 -0.71667 50.633 -0.68333 50.783 -0.53333 50.817 -0.5 50.933 -0.4 51 -0.31667 51.067 -0.25 51.133 -0.18333 ) 0 stdClass Object ( [faFlightID] => BAW151-1400737422-airline-0077:0 [ident] => BAW151 [prefix] => [type] => A321 [suffix] => [origin] => EGLL [destination] => OJAI [timeout] => ok [timestamp] => 1400985120 [departureTime] => 1400967513 [firstPositionTime] => 1400967513 [arrivalTime] => 0 [longitude] => 35.99321 [latitude] => 31.72256 [lowLongitude] => -0.55332 [lowLatitude] => 31.72256 [highLongitude] => 35.99321 [highLatitude] => 51.47756 [groundspeed] => 292 [altitude] => 80 [heading] => 0 [altitudeStatus] => [updateType] => TP [altitudeChange] => [waypoints] => ) 0 stdClass Object ( [faFlightID] => BAW72-1400823615-airline-0340:0 [ident] => BAW72 [prefix] => [type] => B772 [suffix] => [origin] => OMAA [destination] => EGLL [timeout] => ok [timestamp] => 1400985156 [departureTime] => 1400972205 [firstPositionTime] => 1400972205 [arrivalTime] => 0 [longitude] => 25.6638 [latitude] => 44.86404 [lowLongitude] => 25.6638 [lowLatitude] => 26.63937 [highLongitude] => 51.151 [highLatitude] => 44.86404 [groundspeed] => 468 [altitude] => 400 [heading] => 298 [altitudeStatus] => [updateType] => TA [altitudeChange] => [waypoints] => ) 0 stdClass Object ( [faFlightID] => BAW74-1400737420-airline-0399:0 [ident] => BAW74 [prefix] => [type] => B744 [suffix] => [origin] => DNMM [destination] => EGLL [timeout] => ok [timestamp] => 1400985120 [departureTime] => 1400969880 [firstPositionTime] => 1400973600 [arrivalTime] => 0 [longitude] => 1.05589 [latitude] => 38.62169 [lowLongitude] => 1.05589 [lowLatitude] => 14.60502 [highLongitude] => 2.83994 [highLatitude] => 38.62169 [groundspeed] => 0 [altitude] => 0 [heading] => 356 [altitudeStatus] => [updateType] => TP [altitudeChange] => [waypoints] => ) 0 stdClass Object ( [faFlightID] => BAW236-1400823619-airline-0003:0 [ident] => BAW236 [prefix] => [type] => 767 [suffix] => [origin] => UUDD [destination] => EGLL [timeout] => ok [timestamp] => 1400985120 [departureTime] => 1400983140 [firstPositionTime] => 1400983200 [arrivalTime] => 0 [longitude] => 31.40816 [latitude] => 55.63694 [lowLongitude] => 31.40816 [lowLatitude] => 55.42074 [highLongitude] => 37.71076 [highLatitude] => 55.63694 [groundspeed] => 0 [altitude] => 0 [heading] => 271 [altitudeStatus] => [updateType] => TP [altitudeChange] => [waypoints] => ) 0 stdClass Object ( [faFlightID] => BAW76-1400737420-airline-0401:0 [ident] => BAW76 [prefix] => [type] => B77W [suffix] => [origin] => FNLU [destination] => EGLL [timeout] => ok [timestamp] => 1400985120 [departureTime] => 1400972766 [firstPositionTime] => 1400973060 [arrivalTime] => 0 [longitude] => 8.74954 [latitude] => 16.78003 [lowLongitude] => 8.74954 [lowLatitude] => -8.34434 [highLongitude] => 13.03409 [highLatitude] => 16.78003 [groundspeed] => 0 [altitude] => 0 [heading] => 350 [altitudeStatus] => [updateType] => TP [altitudeChange] => [waypoints] => ) 0 stdClass Object ( [faFlightID] => BAW157-1400737422-airline-0081:0 [ident] => BAW157 [prefix] => [type] => B744 [suffix] => [origin] => EGLL [destination] => OKBK [timeout] => ok [timestamp] => 1400985120 [departureTime] => 1400968713 [firstPositionTime] => 1400968713 [arrivalTime] => 0 [longitude] => 42.32976 [latitude] => 34.32725 [lowLongitude] => -0.54886 [lowLatitude] => 34.32725 [highLongitude] => 42.32976 [highLatitude] => 51.4784 [groundspeed] => 502 [altitude] => 370 [heading] => 135 [altitudeStatus] => [updateType] => TP [altitudeChange] => [waypoints] => ) 0 stdClass Object ( [faFlightID] => BAW6-1400823615-airline-0300:0 [ident] => BAW6 [prefix] => [type] => B77W [suffix] => [origin] => RJAA [destination] => EGLL [timeout] => ok [timestamp] => 1400985130 [departureTime] => 1400983440 [firstPositionTime] => 1400983500 [arrivalTime] => 0 [longitude] => 140.36728 [latitude] => 35.61548 [lowLongitude] => 138.89386 [lowLatitude] => 35.49948 [highLongitude] => 140.52577 [highLatitude] => 38.4814 [groundspeed] => 306 [altitude] => 107 [heading] => 333 [altitudeStatus] => [updateType] => TA [altitudeChange] => C [waypoints] => ) 0


#3

Arrival time of 0 indicates that it has not arrived yet.


#4

How do I check if they have arrived?


#5

It will be non-zero when it arrived (and be the actual time of arrival).