Description Usage Arguments Examples
Philadelphia's open data is published to carto, which allows you to query the data using SQL (specifically the PostgreSQL flavor with the PostGIS extension). Rather than executing the queries in a database program, they are executed through HTTP (ie. the web browser) via Carto's SQL API.
1 2 3 |
query |
character, SQL query |
format |
character, desired response format, either "csv" (returned as data.frame) or "json" (parsed into list by jsonlite::fromJSON) |
base_url |
character, API endpoint, defaults to Philadelphia's Carto SQL endpoint |
stringsAsFactors |
logical, defaults to FALSE, applies to result if format = "csv" |
... |
other arguments passed either to read.csv or fromJSON, depending on format |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.