org.heigit.ohsome.ohsomeapi.output.rawdataresponse.DataResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ohsome-api Show documentation
Show all versions of ohsome-api Show documentation
A public Web-RESTful-API for "ohsome" OpenStreetMap history data.
package org.heigit.ohsome.ohsomeapi.output.rawdataresponse;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import org.heigit.ohsome.ohsomeapi.output.dataaggregationresponse.Attribution;
import org.heigit.ohsome.ohsomeapi.output.dataaggregationresponse.Metadata;
import org.heigit.ohsome.ohsomeapi.output.dataaggregationresponse.Response;
import org.wololo.geojson.Feature;
/**
* Represents the whole GeoJSON response object for the data-extraction endpoints.
*/
@JsonInclude(Include.NON_NULL)
public class DataResponse implements Response {
@ApiModelProperty(notes = "License and copyright info", required = true)
private Attribution attribution;
@ApiModelProperty(notes = "Version of this api", required = true)
private String apiVersion;
@ApiModelProperty(notes = "Metadata describing the output")
private Metadata metadata;
@ApiModelProperty(notes = "Type of the GeoJSON", required = true)
private String type;
@ApiModelProperty(notes = "List of GeoJSON features containing the OSM data")
private List features;
@java.lang.SuppressWarnings("all")
public Attribution getAttribution() {
return this.attribution;
}
@java.lang.SuppressWarnings("all")
public String getApiVersion() {
return this.apiVersion;
}
@java.lang.SuppressWarnings("all")
public Metadata getMetadata() {
return this.metadata;
}
@java.lang.SuppressWarnings("all")
public String getType() {
return this.type;
}
@java.lang.SuppressWarnings("all")
public List getFeatures() {
return this.features;
}
@java.lang.SuppressWarnings("all")
public DataResponse(final Attribution attribution, final String apiVersion, final Metadata metadata, final String type, final List features) {
this.attribution = attribution;
this.apiVersion = apiVersion;
this.metadata = metadata;
this.type = type;
this.features = features;
}
}