In your new 2.0 api, I am looking for an example in php of how to access the data structures stdClass. Do you have a complex example I could use?
What functions will return a filed flight route, if any?
For instance their enroute class produces this result (below) as a stdClass data construct.
How do I get an aspect of it into a variable?
Thanks for your help!
stdClass Object
(
[EnrouteResult] => stdClass Object
(
[next_offset] => 15
[enroute] => Array
(
[0] => stdClass Object
(
[ident] => ASQ5292
[aircrafttype] => CRJ2
[actualdeparturetime] => 1405477320
[estimatedarrivaltime] => 1405479058
[filed_departuretime] => 1405476900
[origin] => KATL
[destination] => KAVL
[originName] => Hartsfield-Jackson Intl
[originCity] => Atlanta, GA
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[1] => stdClass Object
(
[ident] => JIA4677
[aircrafttype] => CRJ7
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405481820
[filed_departuretime] => 1405477800
[origin] => KCLT
[destination] => KAVL
[originName] => Charlotte/Douglas Intl
[originCity] => Charlotte, NC
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[2] => stdClass Object
(
[ident] => PDT4141
[aircrafttype] => DH8C
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405513920
[filed_departuretime] => 1405511400
[origin] => KCLT
[destination] => KAVL
[originName] => Charlotte/Douglas Intl
[originCity] => Charlotte, NC
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[3] => stdClass Object
(
[ident] => ASQ5293
[aircrafttype] =>
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405515157
[filed_departuretime] => 1405512720
[origin] => KATL
[destination] => KAVL
[originName] => Hartsfield-Jackson Intl
[originCity] => Atlanta, GA
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[4] => stdClass Object
(
[ident] => PDT4209
[aircrafttype] => DH8C
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405521000
[filed_departuretime] => 1405518420
[origin] => KCLT
[destination] => KAVL
[originName] => Charlotte/Douglas Intl
[originCity] => Charlotte, NC
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[5] => stdClass Object
(
[ident] => ASQ5322
[aircrafttype] =>
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405523737
[filed_departuretime] => 1405521300
[origin] => KATL
[destination] => KAVL
[originName] => Hartsfield-Jackson Intl
[originCity] => Atlanta, GA
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[6] => stdClass Object
(
[ident] => SKW5411
[aircrafttype] => CRJ
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405523940
[filed_departuretime] => 1405518420
[origin] => KORD
[destination] => KAVL
[originName] => Chicago O'Hare Intl
[originCity] => Chicago, IL
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[7] => stdClass Object
(
[ident] => CHQ6132
[aircrafttype] => E135
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405525860
[filed_departuretime] => 1405518300
[origin] => KLGA
[destination] => KAVL
[originName] => LaGuardia
[originCity] => New York, NY
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[8] => stdClass Object
(
[ident] => ASH2812
[aircrafttype] => CRJ9
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405531948
[filed_departuretime] => 1405530360
[origin] => KCLT
[destination] => KAVL
[originName] => Charlotte/Douglas Intl
[originCity] => Charlotte, NC
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[9] => stdClass Object
(
[ident] => ASQ5584
[aircrafttype] =>
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405532679
[filed_departuretime] => 1405530300
[origin] => KATL
[destination] => KAVL
[originName] => Hartsfield-Jackson Intl
[originCity] => Atlanta, GA
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[10] => stdClass Object
(
[ident] => PDT4288
[aircrafttype] => DH8C
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405537918
[filed_departuretime] => 1405536000
[origin] => KCLT
[destination] => KAVL
[originName] => Charlotte/Douglas Intl
[originCity] => Charlotte, NC
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[11] => stdClass Object
(
[ident] => ASQ4175
[aircrafttype] => E135
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405538159
[filed_departuretime] => 1405531800
[origin] => KEWR
[destination] => KAVL
[originName] => Newark Liberty Intl
[originCity] => Newark, NJ
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[12] => stdClass Object
(
[ident] => SKW5290
[aircrafttype] => CRJ
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405539720
[filed_departuretime] => 1405534200
[origin] => KORD
[destination] => KAVL
[originName] => Chicago O'Hare Intl
[originCity] => Chicago, IL
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[13] => stdClass Object
(
[ident] => ASQ5033
[aircrafttype] =>
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405542509
[filed_departuretime] => 1405539660
[origin] => KATL
[destination] => KAVL
[originName] => Hartsfield-Jackson Intl
[originCity] => Atlanta, GA
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
[14] => stdClass Object
(
[ident] => JIA4565
[aircrafttype] => CRJ7
[actualdeparturetime] => 0
[estimatedarrivaltime] => 1405544289
[filed_departuretime] => 1405542660
[origin] => KCLT
[destination] => KAVL
[originName] => Charlotte/Douglas Intl
[originCity] => Charlotte, NC
[destinationName] => Asheville Rgnl
[destinationCity] => Asheville, NC
)
)
)
)