Source code for amadeus.reference_data._location

from amadeus.client.decorator import Decorator


[docs]class Location(Decorator, object): def __init__(self, client, location_id): Decorator.__init__(self, client) self.location_id = location_id
[docs] def get(self, **params): ''' Returns details for a specific airport. .. code-block:: python amadeus.reference_data.location('ALHR').get() :rtype: amadeus.Response :raises amadeus.ResponseError: if the request could not be completed ''' return self.client.get('/v1/reference-data/locations/{0}' .format(self.location_id), **params)