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

Decommission Safe Place API #260

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,22 +284,6 @@ PointOfInterest[] pointsOfInterest = amadeus.referenceData.locations.pointsOfInt
// Returns a single Point of Interest from a given id
PointOfInterest pointOfInterest = amadeus.referenceData.locations.pointOfInterest("9CB40CB5D0").get();

// Safe Place
// How safe is Barcelona? (based a geo location and a radius)
SafePlace[] safetyScore = amadeus.safety.safetyRatedLocations.get(Params
.with("latitude", "41.39715")
.and("longitude", "2.160873"));

// How safe is Barcelona? (based on a square)
SafePlace[] safetyScore = amadeus.safety.safetyRatedLocations.bySquare.get(Params
.with("north", "41.397158")
.and("west", "2.160873")
.and("south", "41.394582")
.and("east", "2.177181"));

// What is the safety information of a location based on it's Id?
SafePlace safetyScore = amadeus.safety.safetyRatedLocation("Q930400801").get();

// Tours and Activities
// What are the popular activities in Barcelona (based a geo location and a radius)
Activity[] activities = amadeus.shopping.activities.get(Params
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/com/amadeus/Amadeus.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ public class Amadeus extends HTTPClient {
*/
public Booking booking;

/**
* <p>
* A namespaced client for the <code>/v1/safety</code> endpoints.
* </p>
*/
public Safety safety;

/**
* <p>
* A namespaced client for the <code>/v2/schedule</code> endpoints.
Expand Down Expand Up @@ -118,7 +111,6 @@ protected Amadeus(Configuration configuration) {
this.ereputation = new EReputation(this);
this.airport = new Airport(this);
this.booking = new Booking(this);
this.safety = new Safety(this);
this.schedule = new Schedule(this);
this.analytics = new Analytics(this);
this.location = new Location(this);
Expand Down
51 changes: 0 additions & 51 deletions src/main/java/com/amadeus/Safety.java

This file was deleted.

52 changes: 0 additions & 52 deletions src/main/java/com/amadeus/resources/SafePlace.java

This file was deleted.

64 changes: 0 additions & 64 deletions src/main/java/com/amadeus/safety/SafetyRatedLocation.java

This file was deleted.

73 changes: 0 additions & 73 deletions src/main/java/com/amadeus/safety/SafetyRatedLocations.java

This file was deleted.

This file was deleted.

Loading
Loading