spotcrime-city

0.0.4 • Public • Published

SpotCrime-city

Build Status npm

Currently the spotcrime node module will allow you to fetch JSON of crimes in an area with latitude and longitude.

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-city
npm start
Go to localhost:8050/{city}/{State}
e.g 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 = require('spotcrime-city');
 
const results = scc.getCrimesCity('Baltimore, MD');
 
console.log('results', results);

After you start the Hapi server, you can hit endpoints of city and state to see the local crime in your area.

License

MIT Troy M. Connor

Readme

Keywords

Package Sidebar

Install

npm i spotcrime-city

Weekly Downloads

4

Version

0.0.4

License

MIT

Last publish

Collaborators

  • troy0820