crime_near
Find CMPD patrol and domestic violence call counts near a Charlotte/Mecklenburg address or point, with adjustable radius and time window.
Instructions
CMPD calls-for-service (patrol + domestic violence) near a point.
Provide either address (free-form string) or both lat and
lon. CMPD_Calls_for_Service has no incident-level geometry — it
is a monthly-aggregate table keyed by Neighborhood Profile Area (NPA).
This tool resolves the NPA(s) near the point via nearby 311 request
density (see module docstring), then sums CALL_COUNT by
CALL_DESCRIPTION ("CMPD Patrol Calls For Service" / "CMPD DV Calls
For Service") 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 90).
limit: Maximum number of raw NPA/month/category records to return
(default 50); the breakdown totals cover all matching months,
not just the returned records.
Returns:
Dict with nearby_npas (NPA ids used), records (raw NPA/month/
category rows, capped at limit), breakdown (call description ->
total count), total_calls, 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 | |||