OnTime
in package
A namespaced client for the "/v1/airport/predictions/on-time" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getAirport()->getPredictions()->getOnTime();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- get() : OnTimePrediction
- Airport On-Time Performance API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Airport On-Time Performance API:
public
get(array<string|int, mixed> $params) : OnTimePrediction
Returns a percentage of on-time flight departures from a given airport.
$amadeus->getAirport()->getPredictions()->getOnTime()->get( ["airportCode" => "NCE", "date" => 2022-11-01] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
OnTimePrediction —an API resource