Skip to content
This repository has been archived by the owner. It is now read-only.

DataVizToolkit/departures

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Flight Departures

This repository provides downloadable code for the book, "Data Visualization Toolkit"; see DataVisualizationToolkit.com.

These example programs are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Creative Commons License

To Run

This is a rails app that runs on Ruby 2.2.3. Clone the repo and run:

  • bundle install
  • bundle exec rake db:create db:migrate

Then you can follow along with the book.

Checkpoints

  • Ch 6, "The Chord Diagram"
    • Initial setup (5bf69e6)
    • Import airports and carriers (4d8f846)
    • Import flight departures (uses git-lfs) (abe5a4a)
    • Add foreign keys to departures (44d2064)
    • Chord diagram (d102024)
    • Disjointed city pair chord diagram (60c1d65)
  • Ch 7, "Time-Series Aggregates in Postgres"
  • Ch 8, "Using a Separate Reporting Database"
    • Create reporting schema (7f14609)
    • Scenic gem and materialized view (d7168b7)
    • Bulk insert into table in reporting schema (364840a)
  • Ch 9, "Working with Geospatial Data in Rails"
    • Add PostGIS to departures app (ff68f47)
    • Shapefile import, upsert airports, update lonlat (9a07894)
  • Ch 10, "Making Maps with Leaflet and Rails"
    • Map California airports (0ee6ad5)
    • Airport marker clusters (fe86219)
    • Flight path from CEC to BLH (7ec7ef5)
  • Ch 11, "Querying Geospatial Data"
    • Find items near a point scope (2523a49)

About

Companion app for Data Visualization Toolkit

Resources

Stars

Watchers

Forks

Packages

No packages published