Class CountController


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

      Constructors 
      Constructor Description
      CountController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response count​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM objects.
      Response countDensity​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements (number of items divided by the total area in square-kilometers).
      Response countDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
      Response countDensityGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the boundary and the tag.
      Response countDensityGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the tag.
      Response countDensityGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM objects grouped by the OSM type.
      Response countGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
      Response countGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM objects grouped by the boundary and the tag.
      Response countGroupByKey​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM objects grouped by the key.
      Response countGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM objects grouped by the tag.
      Response countGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM objects grouped by the OSM type.
      Response countRatio​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
      Response countRatioGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.
    • Constructor Detail

      • CountController

        public CountController()
    • Method Detail

      • count

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

        @RequestMapping(value="/groupBy/boundary",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest,
                                             javax.servlet.http.HttpServletResponse servletResponse)
                                      throws Exception
        Gives the count of 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
      • countDensity

        @RequestMapping(value="/density",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countDensity​(javax.servlet.http.HttpServletRequest servletRequest,
                                     javax.servlet.http.HttpServletResponse servletResponse)
                              throws Exception
        Gives the density of OSM elements (number 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
      • countDensityGroupByBoundary

        @RequestMapping(value="/density/groupBy/boundary",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest,
                                                    javax.servlet.http.HttpServletResponse servletResponse)
                                             throws Exception
        Gives the density of 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
      • countRatio

        @RequestMapping(value="/ratio",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countRatio​(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