public ActionResult Index() { ViewBag.Message = "Modify this template to kick-start your ASP.NET MVC application."; var result = new GoteborgServices().GetWeather(); return View(); }
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); }
public JsonResult GetParkingCommuter(string longitude, string latitude) { var result = new GoteborgServices().GetParkingHandicap(latitude, longitude, "1000"); return Json(result, JsonRequestBehavior.AllowGet); }
public JsonResult GetNearbyStops(string longitude,string latitude) { var result = new GoteborgServices().GetGBGStopsByCoord(latitude, longitude,10); return Json(JsonConvert.SerializeObject(result), JsonRequestBehavior.AllowGet); }