public class Locations
extends java.lang.Object
A namespaced client for the
/v2/reference-data/locations endpoints.
Access via the Amadeus client object
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations;| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AIRPORT |
Airports |
airports
A namespaced client for the
/v2/reference-data/locations/airports endpoints. |
static java.lang.String |
ANY |
static java.lang.String |
CITY |
Hotels |
hotels
A namespaced client for the
/v1/reference-data/locations/hotels endpoints. |
PointOfInterest |
pointOfInterest
A namespaced client for the
/v2/reference-data/locations/pois endpoints. |
PointsOfInterest |
pointsOfInterest
A namespaced client for the
/v2/reference-data/locations/pois endpoints. |
| Modifier and Type | Method and Description |
|---|---|
Location[] |
get()
Convenience method for calling
get without any parameters. |
Location[] |
get(Params params)
Returns a list of airports and cities matching a given keyword.
|
PointOfInterest |
pointOfInterest(java.lang.String id) |
public static java.lang.String ANY
public static java.lang.String AIRPORT
public static java.lang.String CITY
public Airports airports
A namespaced client for the
/v2/reference-data/locations/airports endpoints.
public PointsOfInterest pointsOfInterest
A namespaced client for the
/v2/reference-data/locations/pois endpoints.
public PointOfInterest pointOfInterest
A namespaced client for the
/v2/reference-data/locations/pois endpoints.
public Hotels hotels
A namespaced client for the
/v1/reference-data/locations/hotels endpoints.
public Locations(Amadeus client)
public Location[] get(Params params) throws ResponseException
Returns a list of airports and cities matching a given keyword.
amadeus.referenceData.locations.get(Params
.with("keyword", "lon)
.and("subType", Locations.ANY));params - the parameters to send to the APIResponseException - when an exception occurspublic Location[] get() throws ResponseException
get without any parameters.ResponseExceptionget()public PointOfInterest pointOfInterest(java.lang.String id)