public class Cities
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/cities endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.cities;| Modifier and Type | Method and Description |
|---|---|
City[] |
get()
Convenience method for calling
get without any parameters. |
City[] |
get(Params params)
Returns a list of relevant cities that match a specific word or string of letters.
|
public Cities(Amadeus client)
public City[] get(Params params) throws ResponseException
Returns a list of relevant cities that match a specific word or string of letters.
amadeus.referenceData.locations.cities.get(Params
.with("keyword", "PARIS");params - the parameters to send to the APIResponseException - when an exception occurspublic City[] get() throws ResponseException
get without any parameters.ResponseExceptionget()