-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new Endpoint: calculate indicator with given data #233
Comments
Each Indicator object needs as input a geometry (GeoJSON Feature) and a layer which defines the attributes and aggregations on which to compute. At the moment the layer class (
This issue suggest to provide the data on which to compute directly. Should the data stand for itself as input or be part of the Layer object. Either:
Or:
Is it conceptually wrong that a layer has data attached to it? Regarding the implementation of those two options in code. The first one would mean additional logic in each |
I think that I prefer option 1, where For each indicator data does not always come from ohsome, but can also come from our DB directly, e.g. population. So I would try to avoid having several data objects in different places. From my understanding the new endpoint would allow us to replace the data attributes that would normally be generated. For mapping saturation I can provide the timestamps and the values. But for other indicators I could in theory provide the population count and building density. For each indicator we then check which data attributes are provided in the request and would get the missing one e.g. from ohsome or from the DB. So from my side it sounds okay to add a logic to |
sorry for the confusion I mean option 1. :) |
Discussion result:
|
Implement a possibility/endpoint to request one indicator with given data. The data to calculate the indicator comes through the request and not from the ohsome API.
Data that needs to be given:
{"name": "name"}
{"data": {"value": "1", "timestamp": "iso"}}
{layer: {"name": "name", "description": "description}}
{"bpolys": GeojsonObject}
The text was updated successfully, but these errors were encountered: