Skip to content

Commit 2214b1f

Browse files
committed
Remove support for Location Score API
1 parent a2afcf4 commit 2214b1f

File tree

9 files changed

+0
-67
lines changed

9 files changed

+0
-67
lines changed

README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ List of supported endpoints
300300
# Returns a single Point of Interest from a given id
301301
amadeus.reference_data.locations.point_of_interest('9CB40CB5D0').get()
302302
303-
# Location Score
304-
amadeus.location.analytics.category_rated_areas.get(latitude=41.397158, longitude=2.160873)
305-
306303
# Trip Purpose Prediction
307304
amadeus.travel.predictions.trip_purpose.get(originLocationCode='ATH', destinationLocationCode='MAD', departureDate='2022-11-01', returnDate='2022-11-08')
308305

amadeus/location/__init__.py

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

amadeus/location/_analytics.py

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

amadeus/location/analytics/__init__.py

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

amadeus/location/analytics/_category_rated_areas.py

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

amadeus/namespaces/_location.py

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

amadeus/namespaces/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from amadeus.namespaces._booking import Booking
77
from amadeus.namespaces._schedule import Schedule
88
from amadeus.namespaces._analytics import Analytics
9-
from amadeus.namespaces._location import Location
109
from amadeus.namespaces._airline import Airline
1110
from amadeus.namespaces._ordering import Ordering
1211

@@ -21,6 +20,5 @@ def __init__(self):
2120
self.booking = Booking(self)
2221
self.schedule = Schedule(self)
2322
self.analytics = Analytics(self)
24-
self.location = Location(self)
2523
self.airline = Airline(self)
2624
self.ordering = Ordering(self)

docs/index.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ Analytics/ItineraryPriceMetrics
228228
.. autoclass:: amadeus.analytics.ItineraryPriceMetrics
229229
:members: get
230230

231-
Location/Analytics
232-
================
233-
234-
.. autoclass:: amadeus.location.analytics.CategoryRatedAreas
235-
:members: get
236-
237231
Airline/Destinations
238232
================
239233

specs/namespaces/test_namespaces.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ def test_expected_paths(client):
5757
assert client.schedule.flights is not None
5858
assert client.analytics is not None
5959
assert client.analytics.itinerary_price_metrics is not None
60-
assert client.location is not None
61-
assert client.location.analytics.category_rated_areas is not None
6260
assert client.airline.destinations is not None
6361
assert client.shopping.transfer_offers is not None
6462
assert client.ordering.transfer_orders is not None
@@ -98,7 +96,6 @@ def test_expected_get_methods(client):
9896
assert client.booking.flight_order('123').delete is not None
9997
assert client.schedule.flights.get is not None
10098
assert client.analytics.itinerary_price_metrics.get is not None
101-
assert client.location.analytics.category_rated_areas.get is not None
10299
assert client.airline.destinations.get is not None
103100

104101

@@ -174,13 +171,6 @@ def test_reference_data_locations_point_of_interest_get(client_setup):
174171
)
175172

176173

177-
def test_location_analytics_category_rated_areas_get(client_setup):
178-
client_setup.location.analytics.category_rated_areas.get(a='b')
179-
client_setup.get.assert_called_with(
180-
'/v1/location/analytics/category-rated-areas', a='b'
181-
)
182-
183-
184174
def test_reference_data_recommended_locations_get(client_setup):
185175
client_setup.reference_data.recommended_locations.get(a='b')
186176
client_setup.get.assert_called_with(

0 commit comments

Comments
 (0)