View source: R/lib_data_loader.R
| resolve_via_socrata | R Documentation |
Verifies that a Socrata dataset still exists by fetching its
api/views metadata, then returns the canonical CSV export URL.
Socrata powers the Calgary, Chicago, and NYC open-data portals used
across the MORIE family.
resolve_via_socrata(provenance)
provenance |
A provenance list as returned by
|
The CSV export URL as a character string, or NULL if the
fields are missing, the request fails, or the metadata reports an
error.
# Missing fields return NULL rather than erroring:
resolve_via_socrata(list())
prov <- list(dataset = list(socrata_domain = "data.cityofchicago.org",
socrata_id = "ijzp-q8t2"))
resolve_via_socrata(prov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.