New user, sorry if this has been addressed elsewhere but I can’t find it.
I like MapFlight(). I don’t like the output. I’m now in MapFlightEx, but there are 2.5 problems I’m having:
- I don’t want to specify latlon_box, but if I omit it I get an error message saying it’s required. What values can I use to allow autosize to work?
- I would like to use ident@departureTime but I see no examples and my first try produced a 0 byte response. Would faFlightID=>“QFA9@1474376100” work?
2a) I’m getting 0-byte returned on the ident as seen in the webpage source code. Flight was live. So perhaps there’s another issue with my code.
2b) Do I have to specify layer_on and layer_off items or by leaving the values blank will it use the documented defaults? Again omitting it produced an error.
$client = new SoapClient('http://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options);
$fname = "/home/nconti6/public_html/wp-content/uploads/2016/10/fa-mel-dxb.png";
$params = array(
"faFlightID" => "QFA9-1474176909-airline-0167",
"mapHeight" => 546,
"mapWidth" => 973,
"layer_on" => "",
"layer_off" => "",
"show_data_blocks" => true,
"show_airports" => true,
"airports_expand_view" => true,
"latlon_box" =>
);
$result = $client->MapFlightEx($params);
header("Content-type: image/png");
file_put_contents($fname, base64_decode($result->MapFlightResult));
Appreciate any help you can provide.