$ArrivalCity,
'destinationCriteriaLocationType' => 'A',
'maxCT1' => 400,
'maxCircuity' => 200,
'maxElapsedTime' => 2400,
'originCriteria' => $DepartureCity,
'originCriteriaLocationType' => 'A',
'requestDate' => $departureDate,
'requestTime' => '00:01:00',
'rtnRequestTime' => '00:01:00',
'sortOrder' => 'D',
'via1CriteriaLocationType' => 'A',
'via2CriteriaLocationType' => 'A',
'operatingCarrierOnly' => true,
'numberOfStops' => 1,
'includeRoutes' => true,
'includeResults' => true,
'includeMarkers' => true,
'requestType' => 'outbound',
'language' => 'en',
'description' => 'outbound-connections',
'includeCodeShare' => false,
'nonStopDirect' => false,
'dateFormat' => null,
'timeFormat' => 'HH:mm',
);
$jsonData = json_encode($requestData);
// Set up the HTTP headers
$options = [
'http' => [
'header' => "Content-type: application/jsonrn",
'method' => 'POST',
'content' => $jsonData,
],
];
$context = stream_context_create($options);
// Make the POST request
$response = file_get_contents($url, false, $context);
$flightData = json_decode($response, true);
}
$counter = 0
?>
Flight Search Results | Connections = $flightData['flightsCount']; ?>
-
Aircraft Name: = $flight['aircraftName']; ?>
-
= ' ' . $flight['airline'] . ' - ' . $flight['operatedBy'] . $flight['flightNo']; ?>
routes |
Departure |
Arrival |
= $routes['key']; ?> |
= $flight['departPortName'] . ' ✈️ ' . $flight['departureDateAsString'] . ' - ' . $flight['departureTimeAsString']; ?> |
= $flight['arrivalPortName'] . ' ✈️ ' . $flight['arrivalDateAsString'] . ' - ' . $flight['arrivalTimeAsString']; ?> |