Class LengthController


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response length​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the length of OSM elements.
      Response lengthDensity​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements (length of items divided by the total area in square-kilometers).
      Response lengthDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).
      Response lengthDensityGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the boundary and the tag.
      Response lengthDensityGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the tag.
      Response lengthDensityGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the OSM type.
      Response lengthGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the length of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).
      Response lengthGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the length of OSM elements grouped by the boundary and the tag.
      Response lengthGroupByKey​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the length of OSM elements grouped by the key.
      Response lengthGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the length of OSM elements grouped by the tag.
      Response lengthGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the length of OSM elements grouped by the OSM type.
      Response lengthRatio​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
      Response lengthRatioGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of the length of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.
    • Constructor Detail

      • LengthController

        public LengthController()
    • Method Detail

      • length

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

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

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

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

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