Class GroupByResponse
java.lang.Object
org.heigit.ohsome.ohsomeapi.output.groupby.GroupByResponse
- All Implemented Interfaces:
Response
Represents the whole JSON response object for the data aggregation response using the
count|length|area|perimeter/groupBy resource. It contains an optional
Metadata
, the requested GroupByResult
for a JSON response and
an identifier of the object. If the output format is GeoJSON, the response includes a Feature
array, which holds the respective objects with their
timestamp-value pairs.-
Constructor Summary
ConstructorDescriptionGroupByResponse
(Attribution attribution, String apiVersion, Metadata metadata, GroupByResult[] groupByUserResult) -
Method Summary
Modifier and TypeMethodDescriptionorg.geojson.Feature[]
getType()
static GroupByResponse
of
(Attribution attribution, String apiVersion, Metadata metadata, String type, org.geojson.Feature[] features) Static factory method returning the whole GeoJSON response.
-
Constructor Details
-
GroupByResponse
public GroupByResponse(Attribution attribution, String apiVersion, Metadata metadata, GroupByResult[] groupByUserResult)
-
-
Method Details
-
of
public static GroupByResponse 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() -
getGroupByResult
-