get_area_citations: Get area citations from Open Baltimore

View source: R/get_area_citations.R

get_area_citationsR Documentation

Get area citations from Open Baltimore

Description

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 to FALSE 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")

elipousson/mapbaltimore documentation built on April 2, 2024, 4:23 p.m.