Esempio n. 1
0
        public void FillPlaceQuantities(string placeName, AbstractRatingCategory ratingCategory)
        {
            Place placeToAnalize = _requestSender.GetLocalisationByName(placeName);

            for (int i = 0; i < ratingCategory.ListOfPlaceTypes.Count; i++)
            {
                ListOfResults listOfResults = _requestSender.FindNear(placeToAnalize, ratingCategory.ListOfPlaceTypes[i].Name);
                ratingCategory.ListOfPlaceTypes[i].Quantity = listOfResults.results.Length;
            }
            ratingCategory.Lat = placeToAnalize.Lat.ToString().Replace(',', '.');
            ratingCategory.Lng = placeToAnalize.Lng.ToString().Replace(',', '.');
        }
        public void FillPlaceQuantities(string placeName, AbstractRatingCategory ratingCategory)
        {
            Place placeToAnalize = _requestSender.GetLocalisationByName(placeName);

            for (int i = 0; i < ratingCategory.ListOfPlaceTypes.Count; i++)
            {
                ListOfResults listOfResults = _requestSender.FindNear(placeToAnalize, ratingCategory.ListOfPlaceTypes[i].Name);
                ratingCategory.ListOfPlaceTypes[i].Quantity = listOfResults.results.Length;
                //////////////////
                System.Console.WriteLine(ratingCategory.ListOfPlaceTypes[i].Name + ": " + ratingCategory.ListOfPlaceTypes[i].Quantity);
                //////////////////
            }
        }