def nearest_airport(token, latitude, longitude): parameters = { 'latitude': latitude, 'longitude': longitude, 'token': token } return get_response('flight_api/getNearestAirport', parameters)
def search(token, origin, destination, date, **kwargs): parameters = { 'd': origin, 'a': destination, 'date': date, 'token': token } return get_response('search/flight', parameters)
def search(token, origin, destination, date): parameters = { 'd': origin, 'a': destination, 'date': date, 'token': token } return get_response('search/train', parameters)
def search(token, keyword, startdate, night, adult=1): parameters = { 'q': keyword, 'startdate': startdate, 'night': night, 'adult': adult, 'token': token } return get_response('search/hotel', parameters)
def nearest_airport(token, latitude, longitude): parameters = {'latitude': latitude, 'longitude': longitude, 'token': token} return get_response('flight_api/getNearestAirport', parameters)
def search(token, origin, destination, date, **kwargs): parameters = {'d': origin, 'a': destination, 'date': date, 'token': token} return get_response('search/flight', parameters)
def search(token, origin, destination, date): parameters = {'d': origin, 'a': destination, 'date': date, 'token': token} return get_response('search/train', parameters)