예제 #1
0
 public LocationSearchResultItem(Location location, double distance)
 {
     Location = location;
     Distance = distance;
 }
예제 #2
0
        public IEnumerable<Location> GetLocations()
        {
            for (int i = 0; i < 200000; i++)
            {
                var address = string.Format("{0} Random Address", i);
                var latitude = (_random.NextDouble() * 180) - 90;
                var longitude = (_random.NextDouble() * 360) - 180;

                var location = new Location
                {
                    Address = address,
                    Coordinates = new GeoCoordinate(latitude, longitude)
                };

                yield return location;
            }
        }