SlideShare a Scribd company logo
1 of 43
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 VisualizationAna Figueiras
 
Visualizing Health Data
Visualizing Health DataVisualizing Health Data
Visualizing Health DataSchema
 
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 Projectraj
 
Data Visualization for the Public Sector
Data Visualization for the Public SectorData Visualization for the Public Sector
Data Visualization for the Public SectorJESS3
 
The Importance of Data Visualization
The Importance of Data VisualizationThe Importance of Data Visualization
The Importance of Data VisualizationCenterline Digital
 

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 DataWork-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 toolsChicago Technology Cooperative
 
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
 
Opening of Geographic Data
Opening of Geographic DataOpening of Geographic Data
Opening of Geographic DataShoaib Burq
 
The Future of the Map
The Future of the MapThe Future of the Map
The Future of the Mapelliotharmon
 
Data & Society Taxi Privacy Talk
Data & Society Taxi Privacy TalkData & Society Taxi Privacy Talk
Data & Society Taxi Privacy Talkcwhong
 
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 capabilitiesMicrosoft 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 APIFrank Kresin
 
Koober Machine Learning
Koober Machine LearningKoober Machine Learning
Koober Machine LearningJames 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 AnalysisSingleStore
 
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 RoboticsPrabindh Sundareson
 
The End of Transport Behaviour Modelling
The End of Transport Behaviour ModellingThe End of Transport Behaviour Modelling
The End of Transport Behaviour ModellingAndrew 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 eventCycleStreets
 
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 MapAlbert 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
 
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
 
Opening of Geographic Data
Opening of Geographic DataOpening of Geographic Data
Opening of Geographic Data
 
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 Machine Learning
Koober Machine LearningKoober Machine Learning
Koober Machine Learning
 
Koober Preduction IO Presentation
Koober Preduction IO PresentationKoober Preduction IO Presentation
Koober Preduction IO Presentation
 
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

定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一lvtagr7
 
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...narwatsonia7
 
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girlsssuser7cb4ff
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricksabhishekparmar618
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024CristobalHeraud
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一F La
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
NATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detailNATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detailDesigntroIntroducing
 
Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...Narsimha murthy
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Sitegalleryaagency
 
shot list for my tv series two steps back
shot list for my tv series two steps backshot list for my tv series two steps back
shot list for my tv series two steps back17lcow074
 
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`dajasot375
 
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
 
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
Housewife Call Girls NRI Layout - Call 7001305949 Rs-3500 with A/C Room Cash ...
 
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girls
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricks
 
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
PORTFOLIO DE ARQUITECTURA CRISTOBAL HERAUD 2024
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
NATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detailNATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detail
 
Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...Revit Understanding Reference Planes and Reference lines in Revit for Family ...
Revit Understanding Reference Planes and Reference lines in Revit for Family ...
 
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
 
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Site
 
shot list for my tv series two steps back
shot list for my tv series two steps backshot list for my tv series two steps back
shot list for my tv series two steps back
 
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
 
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 

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!