Class ElementsFullHistoryController

java.lang.Object
org.heigit.ohsome.ohsomeapi.controller.dataextraction.elements.ElementsFullHistoryController

@RestController @RequestMapping("/elementsFullHistory") public class ElementsFullHistoryController extends Object
REST controller containing the methods, which are mapped to "/elementsFullHistory" and used to return the full history of the requested OSM data.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    elementsBboxFullHistory(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the OSM objects as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
    void
    elementsCentroidFullHistory(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the OSM objects as GeoJSON features, which have the centroid of the respective objects in the geometry field.
    void
    elementsFullHistory(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the OSM objects as GeoJSON features, which have the geometry of the respective objects in the geometry field.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ElementsFullHistoryController

      public ElementsFullHistoryController()
  • Method Details

    • elementsFullHistory

      @RequestMapping(value="/geometry", method={GET,POST}, produces="application/json") public void elementsFullHistory(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the OSM objects as GeoJSON features, which have the geometry of the respective objects in the geometry field.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Throws:
      Exception - thrown by #extract() extract
    • elementsBboxFullHistory

      @RequestMapping(value="/bbox", method={GET,POST}, produces="application/json") public void elementsBboxFullHistory(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the OSM objects as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Throws:
      Exception - thrown by #extract() extract
    • elementsCentroidFullHistory

      @RequestMapping(value="/centroid", method={GET,POST}, produces="application/json") public void elementsCentroidFullHistory(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the OSM objects as GeoJSON features, which have the centroid of the respective objects in the geometry field.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Throws:
      Exception - thrown by #extract() extract