public LocationSearchResultItem(Location location, double distance) { Location = location; Distance = distance; }
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; } }