SlideShare a Scribd company logo
NYC Taxis: A Day in the Life 
A Data Visualization/Civic Hack by Chris Whong 
FutureStack 
October 8, 2014 @chris_whong
A bit about me… 
Data Solutions Architect 
Socrata, Inc. 
Democratizing Public Data 
Urban Planner 
Coder
Urbanist, 
Mapmaker, 
Data Junkie
OPEN CIVIC 
My 
Favorit 
e 
Data 
GEOSPATIAL
It all started with a tweet…
“…you will need to send or bring an 
external hard drive with a minimum 
capacity of 200 GB to the TLC 
offices. The address is listed below. 
The hard drive must be brand new, 
still in the box and unopened. “
Data!
Fare Data – 12 CSVs (~2GB 
each) 
• Payment Type 
• Fare 
• Tax 
• Tip (Credit Card Only) 
• Tolls 
Trip Data – 12 CSVs (~2GB each) 
• Medallion 
• Driver 
• Pickup Time and Location 
• Dropoff Time and Location 
173 Million Trips in 2013!
• Shared via Torrent and Direct Download 
• Urban Data Nerds Rejoice! 
• Lots of Interesting Projects and Analysis
Driver and Vehicle De - Anonymization 
hash = md5(medallionNumber) 
Medallion: 6B111958A39B24140C973B262EA9FEA5 
Hack License: D3B035A03C8A34DA17488129DA581EE7 
There are only 19 million possible values!
Passenger Identification 
“Riding with the Stars” by Anthony Tockar
But what will I do with the data? 
I love: 
• Data Visualization 
• Mapping 
• Transportation 
• Civic Hacking 
• Node.js 
• D3.js 
• Learning how cities work 
SpatioTemporal Data is PERFECT for map animations!
Burning Questions: 
Where do cabs go? 
How much $ to they make? 
How much time do they spend empty/full?
The Vision: 
Pick a single Taxi from the data, 
follow it for 24 hours on a map. 
Repeat.
1) Get Raw Data 
(Isolate a collection of full “cab/days”) 
Figure it out myself : HARD! 
Ask the internets for help: EASY! 
+
2) Turn each trip into a line : 
Directions API 
Start and End Points IN 
Directions with encoded 
polylines OUT 
Raw Data (Trips & Fares) Node.js Script Trips + Polylines
3) Store the Results in SQLite
Getting a Day’s Trips into the 
Browser 
Backend (heroku): 
SQLite Database Absurdly simple node server 
/trip 
1 day’s trips as geoJSON API 
• HTML/CSS/JQuery 
• D3.js 
• Leaflet.js 
• Mapbox 
• Moment.js 
• Bootstrap 
Frontend:
GeoJSON in Leaflet via D3
GOT DATA. 
Now how to visualize it?
Follow the Bouncing Ball:
Recursive SetTimeout( ) Counts Minutes: 
Correct time at Start of Each Trip:
Empty/Full Chart w/ Cumulative Earnings
Todo: 
• Allow pause & inspect 
• Show driver shifts & totals 
• Show miles traveled 
• Add a non-cumulative column chart for 
fares
Thanks for sponsoring! 
&
A Few More Examples…
Tech 
Chops 
Design 
Eye 
DataViz 
! 
Vision & 
StoryTelling
Thanks! 
@chris_whong 
https://github.com/chriswhong 
http://chriswhong.com 
Support Open Data!

More Related Content

Viewers also liked

iV2014 - Narrative Visualization
iV2014 - Narrative VisualizationiV2014 - Narrative Visualization
iV2014 - Narrative Visualization
Ana Figueiras
 
Data Storytelling
Data Storytelling Data Storytelling
Data Storytelling
Sarthak Rohilla
 
Visualizing Health Data
Visualizing Health DataVisualizing Health Data
Visualizing Health Data
Schema
 
Predicting Cab Booking Cancellations- Data Mining Project
Predicting Cab Booking Cancellations- Data Mining ProjectPredicting Cab Booking Cancellations- Data Mining Project
Predicting Cab Booking Cancellations- Data Mining Project
raj
 
Data Visualization for the Public Sector
Data Visualization for the Public SectorData Visualization for the Public Sector
Data Visualization for the Public Sector
JESS3
 
The Importance of Data Visualization
The Importance of Data VisualizationThe Importance of Data Visualization
The Importance of Data Visualization
Centerline Digital
 
Ola Cabs
Ola CabsOla Cabs
Ola Cabs
Pavan Gautam
 
Data visualization
Data visualizationData visualization
Data visualization
Jan Willem Tulp
 

Viewers also liked (8)

iV2014 - Narrative Visualization
iV2014 - Narrative VisualizationiV2014 - Narrative Visualization
iV2014 - Narrative Visualization
 
Data Storytelling
Data Storytelling Data Storytelling
Data Storytelling
 
Visualizing Health Data
Visualizing Health DataVisualizing Health Data
Visualizing Health Data
 
Predicting Cab Booking Cancellations- Data Mining Project
Predicting Cab Booking Cancellations- Data Mining ProjectPredicting Cab Booking Cancellations- Data Mining Project
Predicting Cab Booking Cancellations- Data Mining Project
 
Data Visualization for the Public Sector
Data Visualization for the Public SectorData Visualization for the Public Sector
Data Visualization for the Public Sector
 
The Importance of Data Visualization
The Importance of Data VisualizationThe Importance of Data Visualization
The Importance of Data Visualization
 
Ola Cabs
Ola CabsOla Cabs
Ola Cabs
 
Data visualization
Data visualizationData visualization
Data visualization
 

Similar to Visualizing Urban Data - Chris Whong

Analyzing NYC Transit Data
Analyzing NYC Transit DataAnalyzing NYC Transit Data
Analyzing NYC Transit Data
Work-Bench
 
This is not your grandmother's online map: Advancing your mission with GIS tools
This is not your grandmother's online map: Advancing your mission with GIS toolsThis is not your grandmother's online map: Advancing your mission with GIS tools
This is not your grandmother's online map: Advancing your mission with GIS tools
Chicago Technology Cooperative
 
Opening of Geographic Data
Opening of Geographic DataOpening of Geographic Data
Opening of Geographic DataShoaib Burq
 
Public Sphere: Gov 2.0 - Shoaib Burq
Public Sphere: Gov 2.0 - Shoaib BurqPublic Sphere: Gov 2.0 - Shoaib Burq
Public Sphere: Gov 2.0 - Shoaib BurqPia Waugh
 
The Future of the Map
The Future of the MapThe Future of the Map
The Future of the Map
elliotharmon
 
Data & Society Taxi Privacy Talk
Data & Society Taxi Privacy TalkData & Society Taxi Privacy Talk
Data & Society Taxi Privacy Talk
cwhong
 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilities
Microsoft Tech Community
 
Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...
Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...
Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...
Jim Czuprynski
 
CitySDK Linked Data API
CitySDK Linked Data APICitySDK Linked Data API
CitySDK Linked Data API
Frank Kresin
 
Koober Preduction IO Presentation
Koober Preduction IO PresentationKoober Preduction IO Presentation
Koober Preduction IO Presentation
Salesforce Engineering
 
Koober Machine Learning
Koober Machine LearningKoober Machine Learning
Koober Machine Learning
James Ward
 
The Impact of Always-on Connectivity for Geospatial Applications and Analysis
The Impact of Always-on Connectivity for Geospatial Applications and AnalysisThe Impact of Always-on Connectivity for Geospatial Applications and Analysis
The Impact of Always-on Connectivity for Geospatial Applications and Analysis
SingleStore
 
Synthetic Data and Graphics Techniques in Robotics
Synthetic Data and Graphics Techniques in RoboticsSynthetic Data and Graphics Techniques in Robotics
Synthetic Data and Graphics Techniques in Robotics
Prabindh Sundareson
 
The End of Transport Behaviour Modelling
The End of Transport Behaviour ModellingThe End of Transport Behaviour Modelling
The End of Transport Behaviour Modelling
Andrew Nash
 
OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...
OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...
OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...
CycleStreets
 
Webinar: Using smart card and GPS data for policy and planning: the case of T...
Webinar: Using smart card and GPS data for policy and planning: the case of T...Webinar: Using smart card and GPS data for policy and planning: the case of T...
Webinar: Using smart card and GPS data for policy and planning: the case of T...
BRTCoE
 
Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...
Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...
Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...
WRI Ross Center for Sustainable Cities
 
Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML...
 Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML... Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML...
Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML...
Databricks
 
CycleStreets: Our Story - presentation to Net2Camb event
CycleStreets: Our Story - presentation to Net2Camb eventCycleStreets: Our Story - presentation to Net2Camb event
CycleStreets: Our Story - presentation to Net2Camb event
CycleStreets
 
How to (Quickly) Make a Bus Map
How to (Quickly) Make a Bus MapHow to (Quickly) Make a Bus Map
How to (Quickly) Make a Bus Map
Albert Ching
 

Similar to Visualizing Urban Data - Chris Whong (20)

Analyzing NYC Transit Data
Analyzing NYC Transit DataAnalyzing NYC Transit Data
Analyzing NYC Transit Data
 
This is not your grandmother's online map: Advancing your mission with GIS tools
This is not your grandmother's online map: Advancing your mission with GIS toolsThis is not your grandmother's online map: Advancing your mission with GIS tools
This is not your grandmother's online map: Advancing your mission with GIS tools
 
Opening of Geographic Data
Opening of Geographic DataOpening of Geographic Data
Opening of Geographic Data
 
Public Sphere: Gov 2.0 - Shoaib Burq
Public Sphere: Gov 2.0 - Shoaib BurqPublic Sphere: Gov 2.0 - Shoaib Burq
Public Sphere: Gov 2.0 - Shoaib Burq
 
The Future of the Map
The Future of the MapThe Future of the Map
The Future of the Map
 
Data & Society Taxi Privacy Talk
Data & Society Taxi Privacy TalkData & Society Taxi Privacy Talk
Data & Society Taxi Privacy Talk
 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilities
 
Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...
Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...
Charge Me Up! Using Oracle ML, Analytics, and APEX For Finding Optimal Charge...
 
CitySDK Linked Data API
CitySDK Linked Data APICitySDK Linked Data API
CitySDK Linked Data API
 
Koober Preduction IO Presentation
Koober Preduction IO PresentationKoober Preduction IO Presentation
Koober Preduction IO Presentation
 
Koober Machine Learning
Koober Machine LearningKoober Machine Learning
Koober Machine Learning
 
The Impact of Always-on Connectivity for Geospatial Applications and Analysis
The Impact of Always-on Connectivity for Geospatial Applications and AnalysisThe Impact of Always-on Connectivity for Geospatial Applications and Analysis
The Impact of Always-on Connectivity for Geospatial Applications and Analysis
 
Synthetic Data and Graphics Techniques in Robotics
Synthetic Data and Graphics Techniques in RoboticsSynthetic Data and Graphics Techniques in Robotics
Synthetic Data and Graphics Techniques in Robotics
 
The End of Transport Behaviour Modelling
The End of Transport Behaviour ModellingThe End of Transport Behaviour Modelling
The End of Transport Behaviour Modelling
 
OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...
OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...
OpenStreetMap and CycleStreets: collaborative map-making and cartography in t...
 
Webinar: Using smart card and GPS data for policy and planning: the case of T...
Webinar: Using smart card and GPS data for policy and planning: the case of T...Webinar: Using smart card and GPS data for policy and planning: the case of T...
Webinar: Using smart card and GPS data for policy and planning: the case of T...
 
Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...
Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...
Technology and Big Data - Transforming Infrastructure Planning & Design - Pau...
 
Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML...
 Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML... Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML...
Driver Location Intelligence at Scale using Apache Spark, Delta Lake, and ML...
 
CycleStreets: Our Story - presentation to Net2Camb event
CycleStreets: Our Story - presentation to Net2Camb eventCycleStreets: Our Story - presentation to Net2Camb event
CycleStreets: Our Story - presentation to Net2Camb event
 
How to (Quickly) Make a Bus Map
How to (Quickly) Make a Bus MapHow to (Quickly) Make a Bus Map
How to (Quickly) Make a Bus Map
 

Recently uploaded

Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
Alan Dix
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
peuce
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
Connect Conference 2022: Passive House - Economic and Environmental Solution...
Connect Conference 2022: Passive House -  Economic and Environmental Solution...Connect Conference 2022: Passive House -  Economic and Environmental Solution...
Connect Conference 2022: Passive House - Economic and Environmental Solution...
TE Studio
 
ARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdfARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdf
Knight Moves
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
Carolina de Bartolo
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
ameli25062005
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
708pb191
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.
Techno Merch
 

Recently uploaded (20)

Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理一比一原版(BU毕业证)波士顿大学毕业证如何办理
一比一原版(BU毕业证)波士顿大学毕业证如何办理
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
Connect Conference 2022: Passive House - Economic and Environmental Solution...
Connect Conference 2022: Passive House -  Economic and Environmental Solution...Connect Conference 2022: Passive House -  Economic and Environmental Solution...
Connect Conference 2022: Passive House - Economic and Environmental Solution...
 
ARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdfARENA - Young adults in the workplace (Knight Moves).pdf
ARENA - Young adults in the workplace (Knight Moves).pdf
 
Timeless Principles of Good Design
Timeless Principles of Good DesignTimeless Principles of Good Design
Timeless Principles of Good Design
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
一比一原版(UAL毕业证书)伦敦艺术大学毕业证成绩单如何办理
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.Technoblade The Legacy of a Minecraft Legend.
Technoblade The Legacy of a Minecraft Legend.
 

Visualizing Urban Data - Chris Whong

  • 1. NYC Taxis: A Day in the Life A Data Visualization/Civic Hack by Chris Whong FutureStack October 8, 2014 @chris_whong
  • 2. A bit about me… Data Solutions Architect Socrata, Inc. Democratizing Public Data Urban Planner Coder
  • 4. OPEN CIVIC My Favorit e Data GEOSPATIAL
  • 5. It all started with a tweet…
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. “…you will need to send or bring an external hard drive with a minimum capacity of 200 GB to the TLC offices. The address is listed below. The hard drive must be brand new, still in the box and unopened. “
  • 11.
  • 12. Data!
  • 13. Fare Data – 12 CSVs (~2GB each) • Payment Type • Fare • Tax • Tip (Credit Card Only) • Tolls Trip Data – 12 CSVs (~2GB each) • Medallion • Driver • Pickup Time and Location • Dropoff Time and Location 173 Million Trips in 2013!
  • 14.
  • 15.
  • 16. • Shared via Torrent and Direct Download • Urban Data Nerds Rejoice! • Lots of Interesting Projects and Analysis
  • 17.
  • 18.
  • 19. Driver and Vehicle De - Anonymization hash = md5(medallionNumber) Medallion: 6B111958A39B24140C973B262EA9FEA5 Hack License: D3B035A03C8A34DA17488129DA581EE7 There are only 19 million possible values!
  • 20. Passenger Identification “Riding with the Stars” by Anthony Tockar
  • 21. But what will I do with the data? I love: • Data Visualization • Mapping • Transportation • Civic Hacking • Node.js • D3.js • Learning how cities work SpatioTemporal Data is PERFECT for map animations!
  • 22. Burning Questions: Where do cabs go? How much $ to they make? How much time do they spend empty/full?
  • 23. The Vision: Pick a single Taxi from the data, follow it for 24 hours on a map. Repeat.
  • 24. 1) Get Raw Data (Isolate a collection of full “cab/days”) Figure it out myself : HARD! Ask the internets for help: EASY! +
  • 25.
  • 26. 2) Turn each trip into a line : Directions API Start and End Points IN Directions with encoded polylines OUT Raw Data (Trips & Fares) Node.js Script Trips + Polylines
  • 27. 3) Store the Results in SQLite
  • 28. Getting a Day’s Trips into the Browser Backend (heroku): SQLite Database Absurdly simple node server /trip 1 day’s trips as geoJSON API • HTML/CSS/JQuery • D3.js • Leaflet.js • Mapbox • Moment.js • Bootstrap Frontend:
  • 30. GOT DATA. Now how to visualize it?
  • 31.
  • 32.
  • 34. Recursive SetTimeout( ) Counts Minutes: Correct time at Start of Each Trip:
  • 35. Empty/Full Chart w/ Cumulative Earnings
  • 36. Todo: • Allow pause & inspect • Show driver shifts & totals • Show miles traveled • Add a non-cumulative column chart for fares
  • 37.
  • 38.
  • 39.
  • 41. A Few More Examples…
  • 42. Tech Chops Design Eye DataViz ! Vision & StoryTelling
  • 43. Thanks! @chris_whong https://github.com/chriswhong http://chriswhong.com Support Open Data!