-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stream-elements' into 'master'
use oshdb streaming api for large geojson requests See merge request giscience/big-data/ohsome/ohsome-api!5
- Loading branch information
Showing
6 changed files
with
132 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...g/heigit/bigspatialdata/ohsome/ohsomeapi/output/dataaggregationresponse/BaseMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.heigit.bigspatialdata.ohsome.ohsomeapi.output.dataaggregationresponse; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import io.swagger.annotations.ApiModelProperty; | ||
|
||
/** | ||
* Represents the metadata JSON object containing various metadata fields about the request: | ||
* for example, execution time, unit, a description of the result values, or the request URL. | ||
*/ | ||
@JsonInclude(Include.NON_NULL) | ||
public abstract class BaseMetadata { | ||
public BaseMetadata() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...heigit/bigspatialdata/ohsome/ohsomeapi/output/dataaggregationresponse/StreamMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.heigit.bigspatialdata.ohsome.ohsomeapi.output.dataaggregationresponse; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import io.swagger.annotations.ApiModelProperty; | ||
|
||
/** | ||
* Represents the metadata JSON object containing the execution time, the unit, a description of the | ||
* result values, as well as the request URL. | ||
*/ | ||
@JsonInclude(Include.NON_NULL) | ||
public class StreamMetadata extends BaseMetadata { | ||
|
||
@ApiModelProperty(notes = "Text describing the result in a sentence", required = true) | ||
private String description; | ||
@ApiModelProperty(notes = "Request URL to which this whole output JSON was generated", | ||
required = true) | ||
private String requestUrl; | ||
|
||
public StreamMetadata(String description, String requestUrl) { | ||
this.description = description; | ||
this.requestUrl = requestUrl; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public String getRequestUrl() { | ||
return requestUrl; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters