Skip to content

Commit 2dbd5db

Browse files
authored
Merge pull request #260 from amadeus4dev/remove-safe-place
Decommission Safe Place API
2 parents 70786e7 + 1ac4ab5 commit 2dbd5db

File tree

12 files changed

+0
-723
lines changed

12 files changed

+0
-723
lines changed

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -284,22 +284,6 @@ PointOfInterest[] pointsOfInterest = amadeus.referenceData.locations.pointsOfInt
284284
// Returns a single Point of Interest from a given id
285285
PointOfInterest pointOfInterest = amadeus.referenceData.locations.pointOfInterest("9CB40CB5D0").get();
286286

287-
// Safe Place
288-
// How safe is Barcelona? (based a geo location and a radius)
289-
SafePlace[] safetyScore = amadeus.safety.safetyRatedLocations.get(Params
290-
.with("latitude", "41.39715")
291-
.and("longitude", "2.160873"));
292-
293-
// How safe is Barcelona? (based on a square)
294-
SafePlace[] safetyScore = amadeus.safety.safetyRatedLocations.bySquare.get(Params
295-
.with("north", "41.397158")
296-
.and("west", "2.160873")
297-
.and("south", "41.394582")
298-
.and("east", "2.177181"));
299-
300-
// What is the safety information of a location based on it's Id?
301-
SafePlace safetyScore = amadeus.safety.safetyRatedLocation("Q930400801").get();
302-
303287
// Tours and Activities
304288
// What are the popular activities in Barcelona (based a geo location and a radius)
305289
Activity[] activities = amadeus.shopping.activities.get(Params

src/main/java/com/amadeus/Amadeus.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ public class Amadeus extends HTTPClient {
6868
*/
6969
public Booking booking;
7070

71-
/**
72-
* <p>
73-
* A namespaced client for the <code>/v1/safety</code> endpoints.
74-
* </p>
75-
*/
76-
public Safety safety;
77-
7871
/**
7972
* <p>
8073
* A namespaced client for the <code>/v2/schedule</code> endpoints.
@@ -118,7 +111,6 @@ protected Amadeus(Configuration configuration) {
118111
this.ereputation = new EReputation(this);
119112
this.airport = new Airport(this);
120113
this.booking = new Booking(this);
121-
this.safety = new Safety(this);
122114
this.schedule = new Schedule(this);
123115
this.analytics = new Analytics(this);
124116
this.location = new Location(this);

src/main/java/com/amadeus/Safety.java

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/main/java/com/amadeus/resources/SafePlace.java

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/main/java/com/amadeus/safety/SafetyRatedLocation.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/main/java/com/amadeus/safety/SafetyRatedLocations.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/main/java/com/amadeus/safety/safetyRatedLocations/BySquare.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)