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