public class BySquare
extends java.lang.Object
A namespaced client for the
/v1/safety/safety-rated-locations/by-square endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.safety.safetyRatedLocations.bySquare;| Modifier and Type | Method and Description |
|---|---|
SafePlace[] |
get()
Convenience method for calling
get without any parameters. |
SafePlace[] |
get(Params params)
Returns a list of safety information within a square defined by
cardinal points.
|
public BySquare(Amadeus client)
public SafePlace[] get(Params params) throws ResponseException
Returns a list of safety information within a square defined by cardinal points.
amadeus.safety.safetyRatedLocations.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 SafePlace[] get() throws ResponseException
get without any parameters.ResponseExceptionSafetyRatedLocations#get()