private List <Location> GenerateLocationsForStreet(Street street, int count) { var locations = new List <Location>(count); var samples = _distribution.Generate(count); double step = street.Distance / count; double distance = step / 2; for (int i = 0; i < count; i++) { var location = street.GetIntermediatePoint(distance); //sprawdzic var sample = samples[i]; location.Latitude += sample[0]; location.Longitude += sample[1]; locations.Add(location); distance += step; } return(locations); }