Class AreaController


  • @RestController
    @RequestMapping("/elements/area")
    public class AreaController
    extends Object
    Controller containing the GET and POST servletRequest handling methods, which are mapped to "/elements/area".
    • Constructor Summary

      Constructors 
      Constructor Description
      AreaController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response area​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the area of OSM objects.
      Response areaDensity​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements (area of items divided by the total area in square-kilometers).
      Response areaDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).
      Response areaDensityGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the boundary and the tag.
      Response areaDensityGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the tag.
      Response areaDensityGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the OSM type.
      Response areaGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the area OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
      Response areaGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the area of OSM objects grouped by the boundary and the tag.
      Response areaGroupByKey​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the area of OSM objects grouped by the key.
      Response areaGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the area of OSM objects grouped by the tag.
      Response areaGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the area of OSM objects grouped by the OSM type.
      Response areaRatio​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
      Response areaRatioGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of the area of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.
    • Constructor Detail

      • AreaController

        public AreaController()
    • Method Detail

      • area

        @RequestMapping(value="",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response area​(javax.servlet.http.HttpServletRequest servletRequest,
                             javax.servlet.http.HttpServletResponse servletResponse)
                      throws Exception
        Gives the area of OSM objects.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by aggregate
      • areaGroupByBoundary

        @RequestMapping(value="/groupBy/boundary",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response areaGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest,
                                            javax.servlet.http.HttpServletResponse servletResponse)
                                     throws Exception
        Gives the area OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #aggregateGroupByBoundary() aggregateGroupByBoundary
      • areaDensity

        @RequestMapping(value="/density",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response areaDensity​(javax.servlet.http.HttpServletRequest servletRequest,
                                    javax.servlet.http.HttpServletResponse servletResponse)
                             throws Exception
        Gives the density of OSM elements (area of items divided by the total area in square-kilometers).
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by aggregate
      • areaDensityGroupByBoundary

        @RequestMapping(value="/density/groupBy/boundary",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response areaDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest,
                                                   javax.servlet.http.HttpServletResponse servletResponse)
                                            throws Exception
        Gives the density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #aggregateGroupByBoundary() aggregateGroupByBoundary
      • areaRatio

        @RequestMapping(value="/ratio",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response areaRatio​(javax.servlet.http.HttpServletRequest servletRequest,
                                  javax.servlet.http.HttpServletResponse servletResponse)
                           throws Exception
        Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #aggregateRatio(RequestResource, HttpServletRequest, HttpServletResponse) aggregateRatio