示例#1
0
        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);
        }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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;
 }