FlightDelay
in package
A namespaced client for the "/v1/travel/predictions/flight-delay" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getTravel()->getPredictions()->getFlightDelay();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- get() : array<string|int, DelayPrediction>
- Flight Delay Prediction API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Flight Delay Prediction API:
public
get(array<string|int, mixed> $params) : array<string|int, DelayPrediction>
Return the delay segment where the flight is likely to lay.
$amadeus->getTravel()->getPredictions()->getFlightDelay()->get([ "originLocationCode"=>"NCE", "destinationLocationCode"=>"ATH", "departureDate"=>"2022-10-06", "departureTime"=>"18:40:00", "arrivalDate"=>"2022-10-06", "arrivalTime"=>"22:05:00", "aircraftCode"=>"32N", "carrierCode"=>"A3", "flightNumber"=>"691", "duration"=>"PT2H25M" ]);
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, DelayPrediction> —an API resource