Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.03 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.03 KB

python-spotcrime Build Status

Provides basic API to Spot Crime.

Install

pip install spotcrime

Usage

from spotcrime import SpotCrime

sc = SpotCrime((lat, lng), radius, None, ['Other'], "your-api-key", days=10)
for incident in sc.get_incidents():
  print(incident)

Development

Pull requests welcome.

Disclaimer

Not affiliated with spotcrime.com. Use at your own risk.

TODO:

  • Smarter radius conversion (1 mile = 0.01)
  • Support included/excluded types
  • Support date ranges

NOTES:

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.