Class DefaultAggregationResponse
java.lang.Object
org.heigit.ohsome.ohsomeapi.output.DefaultAggregationResponse
- All Implemented Interfaces:
Response
Represents the outer JSON response object for the data aggregation requests that do not use the
/groupBy resource. It contains attribution info, the version of the api, optional
Metadata
and the ElementsResult
objects.-
Method Summary
Modifier and TypeMethodDescriptionorg.geojson.Feature[]
Result[]
getType()
static DefaultAggregationResponse
of
(Attribution attribution, String apiVersion, Metadata metadata, String type, org.geojson.Feature[] features) Static factory method returning the whole GeoJSON response.static DefaultAggregationResponse
of
(Attribution attribution, String apiVersion, Metadata metadata, Result[] result) Static factory method returning the whole JSON response.static DefaultAggregationResponse
Static factory method returning JSON without attribution and apiVersion.
-
Method Details
-
of
public static DefaultAggregationResponse of(Attribution attribution, String apiVersion, Metadata metadata, Result[] result) Static factory method returning the whole JSON response. -
of
Static factory method returning JSON without attribution and apiVersion. -
of
public static DefaultAggregationResponse of(Attribution attribution, String apiVersion, Metadata metadata, String type, org.geojson.Feature[] features) Static factory method returning the whole GeoJSON response. -
getAttribution
- Specified by:
getAttribution
in interfaceResponse
-
getApiVersion
- Specified by:
getApiVersion
in interfaceResponse
-
getMetadata
- Specified by:
getMetadata
in interfaceResponse
-
getType
-
getFeatures
public org.geojson.Feature[] getFeatures() -
getResult
-