Snow and Ice Clearing Route Status
NB: The source map is only updated if a "snow event" is declared; if snowfall is relatively minor it may be cleared without the progress being reflected on the map.
This dataset provides a tabular representation of the data used to populate the map at https://gis.edmonton.ca/portal/apps/webappviewer/index.html?id=c69d03c2d216415e820c45d7ea2566bf.
It is obtained by paging through the data exposed by the ArcGIS REST API, e.g. https://gis.edmonton.ca/arcgishosting/rest/services/Hosted/SNIC_Routes_2020/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&resultOffset=0&resultRecordCount=500&f=geojson.
To know how many times we need to page through the data to extract all of the rows, the total row count is obtained thus: https://gis.edmonton.ca/arcgishosting/rest/services/Hosted/SNIC_Routes_2020/FeatureServer/0/query?where=1%3D1&returnCountOnly=true&f=json.
Querying over HTTP
Splitgraph serves as an HTTP API that lets you run SQL queries directly on this data to power Web applications. For example:
curl https://data.splitgraph.com/sql/query/ddn \ -H "Content-Type: application/json" \ -d@-<<EOF {"sql": " SELECT * FROM \"edmonton-ca/snow-and-ice-clearing-route-status-8pdx-hfxi\".\"snow_and_ice_clearing_route_status\" LIMIT 100 "} EOF
See the Splitgraph documentation for more information.