Documentation

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

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
link
https://developers.amadeus.com/self-service/category/air/api-doc/flight-delay-prediction/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, DelayPrediction>

an API resource

Search results