public List <string> HotelList(Latitude ld) { HotelController h1 = new HotelController(); double lat = Convert.ToDouble(ld.latitude); double longi = Convert.ToDouble(ld.longitude); return(h1.Gethotels(lat, longi)); }
public List <string> Get([FromUri] string add) { Latitude HD = new Latitude(); // var address = "pune"; HD.address = add; var locationService = new GoogleLocationService(); var point = locationService.GetLatLongFromAddress(add); HD.latitude = point.Latitude; HD.longitude = point.Longitude; double lat = Convert.ToDouble(HD.latitude); double longi = Convert.ToDouble(HD.longitude); HotelController h1 = new HotelController(); return(h1.Gethotels(lat, longi)); // HotelController.GetDetails(HD); }