public class Location
extends java.lang.Object
A namespaced client for the
/v2/reference-data/locations/:location_id endpoints.
Access via the Amadeus client object
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.referenceData.location(locationId);
| Constructor and Description |
|---|
Location(Amadeus client,
java.lang.String locationId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
get()
Convenience method for calling
get without any parameters. |
Location |
get(Params params)
Returns details for a specific airport.
|
public Location(Amadeus client, java.lang.String locationId)
public Location get(Params params) throws ResponseException
Returns details for a specific airport.
amadeus.referenceData.locations("ALHR').get();params - the parameters to send to the APIResponseException - when an exception occurspublic Location get() throws ResponseException
get without any parameters.ResponseExceptionAirports.get()