Class ContributionsCountController
java.lang.Object
org.heigit.ohsome.ohsomeapi.controller.dataaggregation.contributions.ContributionsCountController
@RestController
@RequestMapping("/contributions")
public class ContributionsCountController
extends Object
REST controller containing the methods, which are mapped to "/contributions/count" and used to
return the count of each contribution (creation, modification, deletion) of the OSM data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontributionsCount
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM contributions.contributionsCountDensity
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM contributions.contributionsCountDensityGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count density of OSM contributions grouped by boundary (bboxes, bcirlces, or bpolys).contributionsCountGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM contributions grouped by boundary (bboxes, bcirlces, or bpolys).contributionsLatestCount
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of latest OSM contributions.contributionsLatestCountDensity
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of latest OSM contributions.
-
Constructor Details
-
ContributionsCountController
public ContributionsCountController()
-
-
Method Details
-
contributionsCount
@RequestMapping(value="/count", method={GET,POST}, produces={"application/json","text/csv"}) public Response contributionsCount(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count of OSM contributions.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
DefaultAggregationResponse
- Throws:
Exception
- thrown by#count(boolean, boolean) count
-
contributionsCountDensity
@RequestMapping(value="/count/density", method={GET,POST}, produces={"application/json","text/csv"}) public Response contributionsCountDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM contributions.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
DefaultAggregationResponse
- Throws:
Exception
- thrown by#count(boolean, boolean) count
-
contributionsLatestCount
@RequestMapping(value="/latest/count", method={GET,POST}, produces={"application/json","text/csv"}) public Response contributionsLatestCount(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count of latest OSM contributions.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
DefaultAggregationResponse
- Throws:
Exception
- thrown byContributionsExecutor.count(boolean,boolean)
-
contributionsLatestCountDensity
@RequestMapping(value="/latest/count/density", method={GET,POST}, produces={"application/json","text/csv"}) public Response contributionsLatestCountDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of latest OSM contributions.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
DefaultAggregationResponse
- Throws:
Exception
- thrown by#count(boolean, boolean) count
-
contributionsCountGroupByBoundary
@RequestMapping(value="/count/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response contributionsCountGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count of OSM contributions grouped by boundary (bboxes, bcirlces, or bpolys).- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
GroupByResponse
- Throws:
Exception
- thrown byContributionsExecutor.countGroupByBoundary(boolean)
-
contributionsCountDensityGroupByBoundary
@RequestMapping(value="/count/density/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response contributionsCountDensityGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count density of OSM contributions grouped by boundary (bboxes, bcirlces, or bpolys).- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
GroupByResponse
- Throws:
Exception
- thrown byContributionsExecutor.countGroupByBoundary(boolean)
-