Пример #1
0
        public static FoodSourceLocation GenerateWithValues(double latitude, double longitude)
        {
            var fs = new FoodSourceLocation();

            fs.GeoCoordinate = new GeoCoordinate(latitude, longitude);
            return(fs);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public FoodSource(FoodSourceLocation location)
 {
     Location = location;
 }