Created
April 11, 2020 12:31
-
-
Save donalod/21e45544c0c0764a8fe30659e98a18d4 to your computer and use it in GitHub Desktop.
COVID_19_IE_STATS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from https://geohive.maps.arcgis.com/apps/opsdashboard/index.html#/29dc1fec79164c179d18d8e53df82e96 | |
curl -s -G https://services1.arcgis.com/eNO7HHeQ3rUcBllm/arcgis/rest/services/Covid19CountyStatisticsHPSCIrelandOpenData/FeatureServer/0/query -d "f=json" -d "where=1=1" -d "returnGeometry=false" -d "spatialRel=esriSpatialRelIntersects" -d "outFields=*&groupByFieldsForStatistics=CountyName" -d "outStatistics=[{\"statisticType\":\"sum\",\"onStatisticField\":\"ConfirmedCovidCases\",\"outStatisticFieldName\":\"value\"}]" -d "cacheHint=true" | jq '.features[].attributes | "\(.CountyName),\(.value)"' | sort -nr -k2 -t"," |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment