List on Ocean Marketplace

# sample analytics query:
# query one month's 3 hourly data for a polygon and provider, return average temperature.
export HOST=https://<host>.com/api
curl -s \
-w '\n' \
-G \
-H "Content-Type: application/json" \
-d 'polygon={"type":"Polygon","coordinates":[[[-3.7025,40.4165],[3,60],[6,90],[-3.7025,40.4165]]]}' \
-d 'startdate=2019-01-01' \
-d 'enddate=2019-01-02' \
-d 'providerId=tSuqRPkLVfDqQG3mgr0x4' \
$HOST/596090/00833a
# raw data on which above query is based:
curl -s \
-w '\n' \
-G \
-H "Content-Type: application/json" \
-d 'polygon={"type":"Polygon","coordinates":[[[-3.7025,40.4165],[3,60],[6,90],[-3.7025,40.4165]]]}' \
-d 'startdate=2019-01-01' \
-d 'enddate=2019-01-02' \
-d 'providerId=tSuqRPkLVfDqQG3mgr0x4' \
$HOST/596090/7afb79Relevant code:
Last updated
Was this helpful?