Example #1
0
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to kick-start your ASP.NET MVC application.";

            var result = new GoteborgServices().GetWeather();

            return View();
        }
Example #2
0
        public JsonResult MyLocal()
        {
            var s = new GoteborgServices();
            var test = s.GetGBGLocationToCoord("Tredje LĂ„nggatan 13B");

            //var stops = new Communications().GetStops(latitude, longitude);

            //return Json(stops, JsonRequestBehavior.AllowGet);

            return Json(new { Title = "Test", Content = "Some content" }, JsonRequestBehavior.AllowGet);
        }
Example #3
0
 public JsonResult GetParkingCommuter(string longitude, string latitude)
 {
     var result = new GoteborgServices().GetParkingHandicap(latitude, longitude, "1000");
     return Json(result, JsonRequestBehavior.AllowGet);
 }
Example #4
0
        public JsonResult GetNearbyStops(string longitude,string latitude)
        {
            var result = new GoteborgServices().GetGBGStopsByCoord(latitude, longitude,10);

            return Json(JsonConvert.SerializeObject(result), JsonRequestBehavior.AllowGet);
        }