public static FoodSourceLocation GenerateWithValues(double latitude, double longitude) { var fs = new FoodSourceLocation(); fs.GeoCoordinate = new GeoCoordinate(latitude, longitude); return(fs); }
public static FoodSourceLocation GenerateRandom(Random rand) { var fs = new FoodSourceLocation(); int lat = rand.Next(516400146, 630304598); int lon = rand.Next(224464416, 341194152); fs.GeoCoordinate = new GeoCoordinate(18d + lat / 1000000000d, -72d - lon / 1000000000d); return(fs); }
public FoodSource(FoodSourceLocation location) { Location = location; }