FlightAware Discussions

Each query takes 10s or more

Dear All:
When I use xml, it takes about 10s or more for results of each query to be returned.
How can I do ,I am in Shanghai, China.This is my code.Thank you.

$options = array(
‘trace’ => true ,
‘exceptions’ => 0,
‘login’ => FlightAwareUserName ,
‘password’ => FlightAwarePassWord ,
);
$client = new SoapClient(‘http://flightxml.flightaware.com/soap/FlightXML2/wsdl’, $options);

$params = array (“startDate” => $startDate,“endDate”=>$endDate,“origin”=>"",“destination”=>"",“airline”=>$airline,“flightno”=>$flightno,“howMany”=>1,“offset”=>0);
$result = $client->AirlineFlightSchedules($params);

For AirlineFlightSchedules, the longer the timespan (difference between startDate and endDate), the longer that query will take. If the performance is taking too long then reduce the difference between those two dates.