Пример #1
0
def location(query):
        ans="<NA>"
        import locentric as location
        import restaurantret as restaur
        ans = location.main(query)
        res_result=restaur.resmain(query)
	if ans or res_result:
           
           #joining restaurant results of zomato and ixigo
           if "restaurants" in query or "restaurant" in query:
           	ans=[{"location":{"ixigo":ans,"zomato":res_result}}]
           else:
           	ans=[{"location":ans}]
	#print ans
	return ans
Пример #2
0
def locationcentric(query,fields):
	ans = "<NA>"
	import locentric
	ans = locentric.main(query)
	return ans