public class Airports
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/airports endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.airports;| Modifier and Type | Method and Description |
|---|---|
Location[] |
get()
Convenience method for calling
get without any parameters. |
Location[] |
get(Params params)
Returns a list of relevant airports near to a given point.
|
public Airports(Amadeus client)
public Location[] get(Params params) throws ResponseException
Returns a list of relevant airports near to a given point.
amadeus.referenceData.locations.airports.get(Params
.with("longitude", 49.0000)
.and("latitude", 2.55));params - the parameters to send to the APIResponseException - when an exception occurspublic Location[] get() throws ResponseException
get without any parameters.ResponseExceptionget()