spotcrime

Provides basic API to spotcrime.com.


License
MIT
Install
pip install spotcrime==1.0.4

Documentation

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.