Skip to content

Commit 2b00fe1

Browse files
committed
Merge branch 'master' into remove-location-score
2 parents 2214b1f + a148506 commit 2b00fe1

File tree

10 files changed

+2
-149
lines changed

10 files changed

+2
-149
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [ master ]
77
jobs:
88
build:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010
strategy:
1111
fail-fast: false
1212
matrix:

README.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,6 @@ List of supported endpoints
291291
# What travelers think about this hotel?
292292
amadeus.e_reputation.hotel_sentiments.get(hotelIds = 'ADNYCCTB')
293293
294-
# Points of Interest
295-
# What are the popular places in Barcelona (based a geo location and a radius)
296-
amadeus.reference_data.locations.points_of_interest.get(latitude=41.397158, longitude=2.160873)
297-
# What are the popular places in Barcelona? (based on a square)
298-
amadeus.reference_data.locations.points_of_interest.by_square.get(north=41.397158, west=2.160873,
299-
south=41.394582, east=2.177181)
300-
# Returns a single Point of Interest from a given id
301-
amadeus.reference_data.locations.point_of_interest('9CB40CB5D0').get()
302-
303294
# Trip Purpose Prediction
304295
amadeus.travel.predictions.trip_purpose.get(originLocationCode='ATH', destinationLocationCode='MAD', departureDate='2022-11-01', returnDate='2022-11-08')
305296

amadeus/reference_data/_locations.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from amadeus.client.decorator import Decorator
22
from amadeus.reference_data.locations._airports import Airports
3-
from amadeus.reference_data.locations._points_of_interest import PointsOfInterest
4-
from amadeus.reference_data.locations._point_of_interest import PointOfInterest
53
from amadeus.reference_data.locations._hotels import Hotels
64
from amadeus.reference_data.locations._hotel import Hotel
75
from amadeus.reference_data.locations._cities import Cities
@@ -11,14 +9,10 @@ class Locations(Decorator, object):
119
def __init__(self, client):
1210
Decorator.__init__(self, client)
1311
self.airports = Airports(client)
14-
self.points_of_interest = PointsOfInterest(client)
1512
self.hotels = Hotels(client)
1613
self.hotel = Hotel(client)
1714
self.cities = Cities(client)
1815

19-
def point_of_interest(self, poi_id):
20-
return PointOfInterest(self.client, poi_id)
21-
2216
def get(self, **params):
2317
'''
2418
Returns details for a specific airport.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from ._airports import Airports
2-
from ._points_of_interest import PointsOfInterest
32
from ._hotel import Hotel
43
from ._cities import Cities
54

6-
__all__ = ['Airports', 'PointsOfInterest', 'Hotel', 'Cities']
5+
__all__ = ['Airports', 'Hotel', 'Cities']

amadeus/reference_data/locations/_point_of_interest.py

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

amadeus/reference_data/locations/_points_of_interest.py

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

amadeus/reference_data/locations/points_of_interest/__init__.py

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

amadeus/reference_data/locations/points_of_interest/_by_square.py

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

docs/index.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,6 @@ ReferenceData/Locations
128128
.. autoclass:: amadeus.reference_data.Airlines
129129
:members: get
130130

131-
ReferenceData/Locations/PointsOfInterest
132-
=======================
133-
134-
.. autoclass:: amadeus.reference_data.locations.PointsOfInterest
135-
:members: get
136-
137-
.. autoclass:: amadeus.reference_data.locations.points_of_interest.BySquare
138-
:members: get
139-
140-
.. autoclass:: amadeus.reference_data.locations.PointOfInterest
141-
:members: get
142-
143131
ReferenceData/Urls
144132
==================
145133

specs/namespaces/test_namespaces.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ def test_expected_paths(client):
1515
assert client.reference_data.location is not None
1616
assert client.reference_data.locations is not None
1717
assert client.reference_data.locations.airports is not None
18-
assert client.reference_data.locations.points_of_interest is not None
19-
assert client.reference_data.locations.points_of_interest.by_square \
20-
is not None
2118
assert client.reference_data.locations.hotels is not None
2219
assert client.reference_data.locations.hotels.by_hotels is not None
2320
assert client.reference_data.locations.hotels.by_city is not None
@@ -68,11 +65,6 @@ def test_expected_get_methods(client):
6865
assert client.reference_data.location('ALHR').get is not None
6966
assert client.reference_data.locations.get is not None
7067
assert client.reference_data.locations.airports.get is not None
71-
assert client.reference_data.locations.points_of_interest.get is not None
72-
assert client.reference_data.locations.points_of_interest.by_square.get \
73-
is not None
74-
assert client.reference_data.locations.point_of_interest('9CB40CB5D0').get \
75-
is not None
7668
assert client.reference_data.recommended_locations.get is not None
7769
assert client.reference_data.locations.hotels.by_city.get is not None
7870
assert client.reference_data.locations.hotels.by_hotels.get is not None
@@ -148,29 +140,6 @@ def test_reference_data_locations_airports_get(client_setup):
148140
)
149141

150142

151-
def test_reference_data_locations_points_of_interest_get(client_setup):
152-
client_setup.reference_data.locations.points_of_interest.get(a='b')
153-
client_setup.get.assert_called_with(
154-
'/v1/reference-data/locations/pois', a='b'
155-
)
156-
157-
158-
def test_reference_data_locations_points_of_interest_by_square_get(client_setup):
159-
client_setup.reference_data.locations.points_of_interest.by_square.get(
160-
a='b')
161-
client_setup.get.assert_called_with(
162-
'/v1/reference-data/locations/pois/by-square', a='b'
163-
)
164-
165-
166-
def test_reference_data_locations_point_of_interest_get(client_setup):
167-
client_setup.reference_data.locations.point_of_interest(
168-
'XXX').get(a='b')
169-
client_setup.get.assert_called_with(
170-
'/v1/reference-data/locations/pois/XXX', a='b'
171-
)
172-
173-
174143
def test_reference_data_recommended_locations_get(client_setup):
175144
client_setup.reference_data.recommended_locations.get(a='b')
176145
client_setup.get.assert_called_with(

0 commit comments

Comments
 (0)