violent_crime_near
Query recent violent crime offenses near a point by address or lat/lon, with radius and time window, returning total counts and breakdown by offense type.
Instructions
CMPD violent-crime offense counts (Homicide/Rape/Robbery/Assault/...) near a point.
Provide either address (free-form string) or both lat and
lon. Same shape/limitation as crime_near: ViolentCrimeData is a
monthly-aggregate table keyed by Neighborhood Profile Area, not
incident-level points, so nearby NPAs are resolved via 311 density (see
module docstring) and OFFENSE_COUNT is summed by
OFFENSE_DESCRIPTION for months within days of now.
Args:
address: Free-form address, e.g. "600 E 4th St, Charlotte, NC".
lat: Latitude, used with lon if address is not given.
lon: Longitude, used with lat if address is not given.
radius_m: Radius in meters used to resolve nearby NPAs (default 800).
days: Only include months within this many days of now (default 180).
limit: Maximum number of raw NPA/month/offense records to return
(default 50); the breakdown totals cover all matching months.
Returns:
Dict with nearby_npas, records (capped at limit), breakdown
(offense description -> total count), total_offenses, radius_m,
days, lat, lon, resolved_address, and a summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lon | No | ||
| days | No | ||
| limit | No | ||
| address | No | ||
| radius_m | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||