public class PointsOfInterest
extends java.lang.Object
A namespaced client for the
/v1/reference-data/locations/pois endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.referenceData.locations.pointsOfInterest;| Modifier and Type | Field and Description |
|---|---|
BySquare |
bySquare
A namespaced client for the
/v1/reference-data/locations/pois/by-square endpoints. |
| Constructor and Description |
|---|
PointsOfInterest(Amadeus client)
Constructor.
|
| 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 near to a given point.
|
public BySquare bySquare
A namespaced client for the
/v1/reference-data/locations/pois/by-square endpoints.
public PointsOfInterest(Amadeus client)
public PointOfInterest[] get(Params params) throws ResponseException
Returns a list of relevant point of interests near to a given point.
amadeus.referenceData.locations.pointsOfInterest.get(Params
.with("longitude", 2.160873)
.and("latitude", 41.397158));params - the parameters to send to the APIResponseException - when an exception occurspublic PointOfInterest[] get() throws ResponseException
get without any parameters.ResponseExceptionget()