Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safetyRatedLocations does not return any safetyRatings #85

Closed
jvence opened this issue Aug 13, 2020 · 2 comments · Fixed by #86
Closed

safetyRatedLocations does not return any safetyRatings #85

jvence opened this issue Aug 13, 2020 · 2 comments · Fixed by #86
Assignees

Comments

@jvence
Copy link

jvence commented Aug 13, 2020

safetyRatings is always null in the results (these lat,lng returns results in the sandbox):

Amadeus amadeus = Amadeus.builder("[hidden]", "[hidden]").build(); try { SafePlace[] safetyScore = amadeus.safety.safetyRatedLocations .get(Params.with("latitude", 51.50735).and("longitude", -0.12775)); System.out.println(); } catch (ResponseException e) { e.printStackTrace(); }

using

com.amadeus
amadeus-java
5.3.0

@jvence
Copy link
Author

jvence commented Aug 13, 2020

Seems like private @getter SafetyRating safetyRating; should be private @getter SafetyRating safetyScores; instead (as that is what is returned by the rest call)

@tsolakoua
Copy link
Member

tsolakoua commented Aug 20, 2020

Hello @jvence , thank you very much for identifying and reporting the bug. It has already been fixed and new release 5.3.1 is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants