Airports
in package
A namespaced client for the "/v1/reference-data/locations/airports" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getLocations()->getAirports();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- get() : array<string|int, Location>
- Airport Nearest Relevant API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Airport Nearest Relevant API:
public
get(array<string|int, mixed> $params) : array<string|int, Location>
Returns a list of relevant airports near to a given point.
$amadeus->getReferenceData()->getLocations()->getAirports()->get( ["latitude"=>51.57285, "longitude"=>-0.44161, "radius"=>500] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Location> —an API resource