Skip to content

jcconnell/python-spotcrime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A python wrapper for the Spot Crime API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages