-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy path_by_square.py
More file actions
33 lines (26 loc) · 1.05 KB
/
_by_square.py
File metadata and controls
33 lines (26 loc) · 1.05 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
33
from amadeus.client.decorator import Decorator
class BySquare(Decorator, object):
def get(self, **params):
'''
Returns a list of relevant point of interests
around a defined square (4 points).
.. code-block:: python
client.reference_data.locations.points_of_interest.by_square.get(
north=41.397158,
west=2.160873,
south=41.394582,
east=2.177181
)
:param north: latitude north of bounding box.
For example: ``41.397158``
:param west: longitude west of bounding box.
For example: ``2.160873``
:param south: latitude south of bounding box.
For example: ``41.394582``
:param east: longitude east of bounding box.
For example: ``2.177181``
:rtype: amadeus.Response
:raises amadeus.ResponseError: if the request could not be completed
'''
return self.client.get(
'/v1/reference-data/locations/pois/by-square', **params)