Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }