Data visualization project using cville Fire/EMS data.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
getData
js
.gitignore
README.md
index.html

README.md

fire-rescue-map

Data visualization project using cville Fire/EMS data. Demo is available at meekohi.com/rids.

Getting Started

If you don't want to scrape the data yourself, you can download the resulting files from http://meekohi.com/rids/data/calltimes.json and http://meekohi.com/rids/data/rids.json

Scraping Data

  • You will need nodejs and mongodb installed.
  • To geolocate addresses, you will need a Developer Key for the Google Geolocation API.
    • note: the geolocation calls will probably cost you $20 or so. There might be a better free alternative.
  • cd getData; npm install - to get setup.
  • node downloadEvents.js - scrapes data from the RIDS system and puts it in MongoDB.
  • node geolocateEvents.js - uses Google's Geolocation API to add latitude/longtitude to each incident.
  • node outputData.js - outputs incidents in a JSON format in /data/ that is more compact and useful for the front-end.

Visualization

  • Fire up a web server and go to fire-rescue-map/index.html.