File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from ._analytics import Analytics
2+
3+ __all__ = ['Analytics' ]
Original file line number Diff line number Diff line change 1+ from amadeus .client .decorator import Decorator
2+ from .analytics import CategoryRatedAreas
3+
4+
5+ class Analytics (Decorator , object ):
6+ def __init__ (self , client ):
7+ Decorator .__init__ (self , client )
8+ self .category_rated_areas = CategoryRatedAreas (client )
Original file line number Diff line number Diff line change 1+ from ._category_rated_areas import CategoryRatedAreas
2+
3+ __all__ = ['CategoryRatedAreas' ]
Original file line number Diff line number Diff line change 1+ from amadeus .client .decorator import Decorator
2+
3+
4+ class CategoryRatedAreas (Decorator , object ):
5+ def get (self , ** params ):
6+ '''
7+ Gets popularity score for location categories
8+
9+ .. code-block:: python
10+
11+ amadeus.location.analytics.category_rated_areas.get(
12+ latitude=41.397158,
13+ longitude=2.160873)
14+
15+ :param latitude: latitude of geographic location to search around.
16+ For example: ``41.397158``
17+ :param longitude: longitude of geographic location to search around.
18+ For example: ``2.160873``
19+
20+ :rtype: amadeus.Response
21+ :raises amadeus.ResponseError: if the request could not be completed
22+ '''
23+ return self .client .get ('/v1/location/analytics/category-rated-areas' ,
24+ ** params )
Original file line number Diff line number Diff line change 1+ from amadeus .client .decorator import Decorator
2+ from amadeus .location ._analytics import Analytics
3+
4+
5+ class Location (Decorator , object ):
6+ def __init__ (self , client ):
7+ Decorator .__init__ (self , client )
8+ self .analytics = Analytics (client )
You can’t perform that action at this time.
0 commit comments