public class BySquare
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/pois/by-square endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.pointsOfInterest.bySquare;| Modifier and Type | Method and Description |
|---|---|
PointOfInterest[] |
get()
Convenience method for calling
get without any parameters. |
PointOfInterest[] |
get(Params params)
Returns a list of relevant point of interests within a square defined by
cardinal points.
|
public BySquare(Amadeus client)
public PointOfInterest[] get(Params params) throws ResponseException
Returns a list of relevant point of interests within a square defined by cardinal points.
amadeus.referenceData.locations.pointsOfInterest.bySquare.get(Params
.with("north", 41.397158)
.and("west", 2.160873)
.and("south", 41.394582)
.and("east", 2.177181));params - the parameters to send to the APIResponseException - when an exception occurspublic PointOfInterest[] get() throws ResponseException
get without any parameters.ResponseExceptionPointsOfInterest#get()