public JsonResult GeolocationMapper(string input) { // Check if parameter is valid if (input.IsNullOrEmpty()) { Logger.Error("GeolocationMapper: input is null or empty"); return Json(string.Empty); } // Execute the Request with the parameter via service facade Geoobject mappedGeoobject = ParkingFinderFacade.PredefinedServiceFacade.GeolocationMappingService.MapInputToGeolocation(input); // Return the result -> Geolocation as JSON if sucessfull, otherwise empty JSON string return mappedGeoobject.IsValid() ? Json(mappedGeoobject) : Json(string.Empty); }
/// <summary> /// c'tor with Paramters /// </summary> /// <param name="centerPoint">Center Point of the Circle</param> /// <param name="radius">Radius of the Circle</param> public CircleQuery(Geoobject centerPoint, double radius) { this.CenterPoint = centerPoint; this.Radius = radius; }