Get Environmental Control Board (ECB) citations from 2007 to 2021.
Usage
get_area_citations(
area_type = NULL,
area_name = NULL,
description = NULL,
start_date = NULL,
end_date = NULL,
where = "1=1",
geometry = TRUE,
crs = pkgconfig::get_config("mapbaltimore.crs", 2804),
...
)
Arguments
- area_type
Area type. Requires area_name is also provided. Options include "neighborhood", "council district", or "police district"
- area_name
Area name. Requires area_type is also provided.
- description
String matching description of citations, e.g. "SIGNS" filters citations to "PROHIBITED POSTING OF SIGNS ON PUBLIC PROPERTY"
- start_date
Character string in format YYYY-MM-DD. Filters citations by violation date.
- end_date
Character string in format YYYY-MM-DD. Filters citations by violation date.
- where
string for where condition. Ignore where condition if area_type and area_name are provided.
- geometry
Return sf object based on lat/lon. Default
TRUE
. Set toFALSE
to return citations with missing coordinates.- crs
Coordinate reference system (CRS) to return. Default 2804
- ...
Additional parameters passed to
getdata::get_esri_data()
excluding url, where, crs, and .name_repair.
Examples
# Get bulk trash citations for Council District 5
get_area_citations(
area_type = "council district",
area_name = "5",
description = "BULK TRASH")
#> Waiting 4s to retry ■■■■■■■■
#> Waiting 4s to retry ■■■■■■■■■■■■■■■■■■■■■■
#> Waiting 4s to retry ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
#> Error: error:0A000152:SSL routines::unsafe legacy renegotiation disabled