public class ByGeocode
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/hotels/by-geocode endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.hotels.byGeocode;| Modifier and Type | Method and Description |
|---|---|
Hotel[] |
get()
Convenience method for calling
get without any parameters. |
Hotel[] |
get(Params params)
Returns a list of hotels result of the search using geocode.
|
public ByGeocode(Amadeus client)
public Hotel[] get(Params params) throws ResponseException
Returns a list of hotels result of the search using geocode.
amadeus.referenceData.locations.hotels.byGeocode.get(Params
.with("latitude", "41.397158")
.and("longitude", "2.160873"));params - the parameters to send to the APIResponseException - when an exception occurspublic Hotel[] get() throws ResponseException
get without any parameters.ResponseExceptionget()