コード例 #1
0
        public ActionResult IndexMulti(double lat, double lon, double r)
        {
            ViewBag.Message = "Task 4";
            BsdsAccess bsdsAccess = new BsdsAccess();
            CoffeeShop[] shops = bsdsAccess.FindByAreaRadius(lat, lon, r);

            //List<CoffeeShop> openShops = new List<CoffeeShop>();
            //foreach (CoffeeShop shop in shops)
            //{
            //    if (shop.Open == 800)
            //    {
            //        openShops.Add(shop);
            //    }
            //}
            //shops = openShops.ToArray();

            PrintHelper printHelper = new PrintHelper();
            ViewBag.Text = printHelper.PrintTable(shops);
            return View("Index");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: bartekwasielak/BsdsApi
 static void Main()
 {
     var bsdsAccess = new BsdsAccess("Av1Pxhxmw1q2Pa8yYeRoO6nRSQttINrDGcmvmPfHzAfokdT0alyVHecHDPNC0oAO");
     var results = bsdsAccess.FindByAreaRadius(47.63674, -122.30413, 3);
 }