示例#1
0
 public IList<BaseSearchableEnabledItem> SearchNearest(MembershipUser currentUser, Location userLocation, int searchCount, double maxDistance)
 {
     log.DebugFormat("[Search] currentUser={0}, userLocation={1}, searchCount={2}.", currentUser, userLocation, searchCount);
     List<BaseSearchableEnabledItem> returnValue = new List<BaseSearchableEnabledItem>();
     m_userProfile.TraceSuggestValue(string.Empty, userLocation.Latitude, userLocation.Longitude);
     SearchUtility searchEngine = new SearchUtility();
     return searchEngine.Search(userLocation, searchCount, null, maxDistance);
 }
示例#2
0
 /// <summary>
 /// Will use this function to find similar restaurants in DB, while import new restaurants
 /// </summary>
 /// <param name="userLocation"></param>
 /// <param name="searchCount"></param>
 /// <param name="maxDistance"></param>
 /// <returns></returns>
 public IList<BaseSearchableEnabledItem> SearchNearestService(Location location, int searchCount, double maxDistance)
 {
     log.DebugFormat("[SearchNearestSevice] location={0}, searchCount={1}, maxDistance(in Radians)={2}.", location, searchCount, maxDistance);
     List<BaseSearchableEnabledItem> returnValue = new List<BaseSearchableEnabledItem>();
     SearchUtility searchEngine = new SearchUtility();
     return searchEngine.Search(location, searchCount, null, maxDistance);
 }
示例#3
0
 public List<GeneralDish> SearchGeneralDish(MembershipUser currentUser, Location userLocation, int searchCount, string searchText)
 {
     log.DebugFormat("[SearchGeneralDish] currentUser={0}, userLocation={1}, searchCount={2}, searchText={3}.", currentUser, userLocation, searchCount, searchText);
     List<GeneralDish> returnValue = new List<GeneralDish>();
     SearchUtility searchEngine = new SearchUtility();
     returnValue = searchEngine.SearchGeneralDish(searchCount, searchText);
     m_userProfile.TraceSuggestValue(searchText, userLocation.Latitude, userLocation.Longitude);
     return returnValue;
 }