Description Usage Arguments Details Value Examples
Street level crime
1  | ukc_street_crime(lat, lng, date = NULL, crime_category = NULL)
 | 
lat | 
 Latitude. Accepts a single value or a vector of values to create a custom polygon.  | 
lng | 
 Longitude. Accepts a single value or a vector of values to create a custom polygon.  | 
date | 
 The year and month in "YYYY-MM" form. If   | 
crime_category | 
 The category of crime to return. Defaults to
returning all crimes. See   | 
lat and lng must be the same length.
A tibble with details of street crimes.
1 2 3 4 5 6 7 8 9 10 11 12  | ## Not run: 
crime <- ukc_street_crime(
  lat = 51.5, lng = -0.6,
  crime_category = "bicycle-theft"
)
crime_poly <- ukc_street_crime(
  lat = c(52.268, 52.794, 52.130),
  lng = c(0.543, 0.238, 0.478)
)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.