Documentation

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

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

when an exception occurs

Return values
array<string|int, Location>

an API resource

Search results