Class UsersController
java.lang.Object
org.heigit.ohsome.ohsomeapi.controller.dataaggregation.users.UsersController
Controller containing the GET and POST servletRequests, which enter through "/users".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncount
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM users.countDensity
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM users (number of users divided by the total area in square-kilometers).countDensityGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM users (number of users divided by the total area in square-kilometers) grouped by boundary geometries.countDensityGroupByTag
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM users grouped by the tag.countDensityGroupByType
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM users grouped by the OSM type.countGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM users grouped by boundary geometries.countGroupByKey
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM users grouped by the key.countGroupByTag
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM users grouped by the tag.countGroupByType
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the count of OSM users grouped by the OSM type.
-
Constructor Details
-
UsersController
public UsersController()
-
-
Method Details
-
count
@RequestMapping(value="/count", 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 users.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
DefaultAggregationResponse
- Throws:
Exception
- thrown by#count(boolean, boolean) count
-
countGroupByType
@RequestMapping(value="/count/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count of OSM users grouped by the OSM type.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByType(HttpServletRequest, HttpServletResponse, boolean) countGroupByType
-
countGroupByTag
@RequestMapping(value="count/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count of OSM users grouped by the tag.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByTag(HttpServletRequest, HttpServletResponse, boolean) countGroupByTag
-
countGroupByKey
@RequestMapping(value="count/groupBy/key", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the count of OSM users grouped by the key.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByKey(HttpServletRequest, HttpServletResponse, boolean) countGroupByKey
-
countGroupByBoundary
@RequestMapping(value="/count/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 users grouped by boundary geometries.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByBoundary(HttpServletRequest, HttpServletResponse, boolean) countGroupByBoundary
-
countDensity
@RequestMapping(value="/count/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 users (number of users divided by the total area in square-kilometers).- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
DefaultAggregationResponse
- Throws:
Exception
- thrown by#count(boolean, boolean) count
-
countDensityGroupByType
@RequestMapping(value="/count/density/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensityGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM users grouped by the OSM type.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByType(HttpServletRequest, HttpServletResponse, boolean) countGroupByType
-
countDensityGroupByTag
@RequestMapping(value="/count/density/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensityGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM users grouped by the tag.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByTag(HttpServletRequest, HttpServletResponse, boolean) countGroupByTag
-
countDensityGroupByBoundary
@RequestMapping(value="/count/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 users (number of users divided by the total area in square-kilometers) grouped by boundary geometries.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#countGroupByBoundary(HttpServletRequest, HttpServletResponse, boolean) countGroupByBoundary
-