Class ContributionsController
- java.lang.Object
-
- org.heigit.ohsome.ohsomeapi.controller.contributions.ContributionsController
-
@RestController @RequestMapping("/contributions") public class ContributionsController extends Object
REST controller containing the methods, which are mapped to "/contributions" and used to return each contribution (creation, modification, deletion) of the OSM data.
-
-
Constructor Summary
Constructors Constructor Description ContributionsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contributions(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
Gives the contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.void
contributionsBbox(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
Gives the contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.void
contributionsBboxLatest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
Gives the latest contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.void
contributionsCentroid(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
Gives the contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.void
contributionsCentroidLatest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
Gives the latest contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.void
contributionsLatest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
Gives the latest contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
-
-
-
Method Detail
-
contributions
@RequestMapping(value="/geometry", method={GET,POST}, produces="application/json") public void contributions(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
Gives the contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
-
contributionsBbox
@RequestMapping(value="/bbox", method={GET,POST}, produces="application/json") public void contributionsBbox(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
Gives the contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
-
contributionsCentroid
@RequestMapping(value="/centroid", method={GET,POST}, produces="application/json") public void contributionsCentroid(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
Gives the contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.
-
contributionsLatest
@RequestMapping(value="/latest/geometry", method={GET,POST}, produces="application/json") public void contributionsLatest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
Gives the latest contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
-
contributionsBboxLatest
@RequestMapping(value="/latest/bbox", method={GET,POST}, produces="application/json") public void contributionsBboxLatest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
Gives the latest contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
-
contributionsCentroidLatest
@RequestMapping(value="/latest/centroid", method={GET,POST}, produces="application/json") public void contributionsCentroidLatest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
Gives the latest contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.
-
-