Provides basic API to Spot Crime.
pip install spotcrime
from spotcrime import SpotCrime
sc = SpotCrime((lat, lng), radius, None, ['Other'], "your-api-key", days=10)
for incident in sc.get_incidents():
print(incident)
Pull requests welcome.
Not affiliated with spotcrime.com. Use at your own risk.
- Smarter radius conversion (1 mile = 0.01)
Support included/excluded typesSupport date ranges
To obtain an API key for commercial or research use, please contact 877.410.1607 or pyrrhus-at-spotcrime.com. The maximum number of returned results is 50, regardless of date.