Git Product home page Git Product logo

avalanche-accident-map's Introduction

avalanche-accident-map

A web app containing an interactive map displaying avalanche accidents in the US.

Check it out here!

Data is obtained from the Colorado Avalanche Information Center.

Getting Started

After cloning or forking the project, you need to install dependencies. Use either yarn or npm. Then, navigate to into this directory and run one of the following commands:

npm install
yarn

Now, you should be able to launch the app. Open your browser at localhost:3000.

npm run start
yarn start

Adding new data

To change what data this project displays, replace accidents.csv with your new data. The column headers must remain the same. Then run:

python convert-to-json.py

Both python2 and 3 should work. This will update the src/accidents.json, which gets used by the actual web app.

Only accidents with latitude and longitude coordinates will be accepted by the conversion script. In the future, we could probably use the place and state and query the Google API to get approximate coordinates, but we're not doing that currently.

Technologies

The key technologies used in this app are:

  • react: A JS component library that helps you build modular web apps.
  • Google Map React: This library wraps the Google Maps API for react.
  • react-popup: A simple react popup library.
  • now.sh: real time deployment and hosting.

avalanche-accident-map's People

Contributors

kmccrohan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.