-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy path_points_of_interest.py
More file actions
32 lines (24 loc) · 1.02 KB
/
_points_of_interest.py
File metadata and controls
32 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from amadeus.client.decorator import Decorator
from amadeus.reference_data.locations.points_of_interest._by_square \
import BySquare
class PointsOfInterest(Decorator, object):
def __init__(self, client):
Decorator.__init__(self, client)
self.by_square = BySquare(client)
def get(self, **params):
'''
Returns a list of relevant point of interests near to a given point.
.. code-block:: python
client.reference_data.locations.points_of_interest.get(
longitude=2.160873,
latitude=41.397158
)
:param latitude: latitude of geographic location to search around.
For example: ``41.397158``
:param longitude: longitude of geographic location to search around.
For example: ``2.160873``
:rtype: amadeus.Response
:raises amadeus.ResponseError: if the request could not be completed
'''
return self.client.get(
'/v1/reference-data/locations/pois', **params)