SpotCrime-city
spotcrime node module will allow you to fetch JSON
of crimes in an area with latitude and longitude.
Currently the This demo
wraps that functionality in a Hapi server and retrieve the JSON
with endpoints for city and state.
To see how it works
npm i spotcrime-citynpm startGo to localhost:8050/city/Stateeg localhost:8050/Baltimore/MD
You can also run this in a Docker container
docker build -t spotcrime-city .docker run -p 8050:8050 -e PORT=8050 spotcrime-city
To use
const scc = ; const results = scc; console;