public class RecommendedLocations
extends java.lang.Object
A namespaced client for the
/v1/reference-data/recommended-locations endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.recommendedLocations;| Constructor and Description |
|---|
RecommendedLocations(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Location[] |
get()
Convenience method for calling
get without any parameters. |
Location[] |
get(Params params)
Returns a list of destination recommendations.
|
public RecommendedLocations(Amadeus client)
public Location[] get(Params params) throws ResponseException
Returns a list of destination recommendations.
amadeus.referenceData.recommendedLocations.get(Params
.with("cityCodes", "PAR")
.and("travelerCountryCode", "FR"));params - the parameters to send to the APIResponseException - when an exception occurspublic Location[] get() throws ResponseException
get without any parameters.ResponseExceptionLocation.get()