Coder Social home page Coder Social logo

commute-heatmap's Introduction

How does office location affect your team's commute time?

This script computes median commute times from your existing team's home addresses to various office locations in San Francisco. You may also modify the script for your city.

Live map here.

  • For a set of team addresses
  • Loops over a grid of San Francisco lat/lon coordinates
  • Computes the median commute time for the whole team
  • Outputs an array of lat/lon/median_commute for input into Carto.com

Usage

  • Install dependencies: npm install
  • Update script: You'll need to fill in your Google Maps API key, and team home addresses
  • Run script: node index.js
  • Copy and paste console output into a CSV
  • Visualize data in Carto
  • Sign up or login
  • From https://[username].carto.com/dashboard/maps, select "New Map"
  • Upload results.csv under "Connect Dataset"
  • You should see a map of your area of interest with same-color dots
  • Use "Wizard" > "Choropleth" in the right hand column to select a color ramp, and set "Column" to "value"

License

Released under the MIT license.

commute-heatmap's People

Contributors

croot2 avatar embreinhardt avatar lambtron avatar ptrbrn avatar reinpk avatar

Watchers

 avatar  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.