Skip to content

Commit

Permalink
Merge pull request #260 from amadeus4dev/remove-safe-place
Browse files Browse the repository at this point in the history
Decommission Safe Place API
  • Loading branch information
minjikarin authored Apr 15, 2024
2 parents 70786e7 + 1ac4ab5 commit 2dbd5db
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 723 deletions.
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

0 comments on commit 2dbd5db

Please sign in to comment.