Class RatioGroupByBoundaryResponse
java.lang.Object
org.heigit.ohsome.ohsomeapi.output.ratio.RatioGroupByBoundaryResponse
- All Implemented Interfaces:
Response
Represents the whole JSON response object for the data aggregation response using the
/ratio/groupBy/boundary resource. It contains an optional
Metadata
object, the requested RatioGroupByResult
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
ConstructorDescriptionRatioGroupByBoundaryResponse
(Attribution attribution, String apiVersion, Metadata metadata, RatioGroupByResult[] groupByBoundaryResult) -
Method Summary
Modifier and TypeMethodDescriptionorg.geojson.Feature[]
getType()
static RatioGroupByBoundaryResponse
of
(Attribution attribution, String apiVersion, Metadata metadata, String type, org.geojson.Feature[] features) Static factory method returning the whole GeoJSON response.
-
Constructor Details
-
RatioGroupByBoundaryResponse
public RatioGroupByBoundaryResponse(Attribution attribution, String apiVersion, Metadata metadata, RatioGroupByResult[] groupByBoundaryResult)
-
-
Method Details
-
of
public static RatioGroupByBoundaryResponse 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() -
getGroupByBoundaryResult
-