Class ContributionsController
java.lang.Object
org.heigit.ohsome.ohsomeapi.controller.dataextraction.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
ContributionsController
public ContributionsController()
-
-
Method Details
-
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.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Throws:
Exception
- thrown by#extract() extract
-
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.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Throws:
Exception
- thrown by#extract() extract
-
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.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Throws:
Exception
- thrown by#extract() extract
-
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.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Throws:
Exception
- thrown by#extract() extract
-
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.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Throws:
Exception
- thrown by#extract() extract
-