520 likes | 554 Views
Travel Time Reliability in PostGIS and R. Michael Fuller Transportation Planner Toledo Metropolitan Area Council of Governments (TMACOG). Ohio GIS Conference. September 24 – 26, 2018. Hyatt Regency Columbus. Columbus, Ohio. Outline. Background and motivation Problem
E N D
Travel Time Reliability in PostGIS and R Michael Fuller Transportation Planner Toledo Metropolitan Area Council of Governments (TMACOG) Ohio GIS Conference September 24 – 26, 2018 Hyatt Regency Columbus Columbus, Ohio
Outline Background and motivation Problem Data processing: Postgres/PostGIS Visualization: Rstudio
LOTTR TTTR
Motivation Moving Ahead for Progress in the 21st Century Act (MAP-21) Congestion Management Process (CMP) Long Range Plans and Transportation Improvement Program
Problem Excel/Access file size limits ArcMap query limits
Solution: Postgres/PostGIS Size limited only by hardware Has the query options I need Free
Setting Up Postgres/PostGIS/pgAdmin https://www.postgresql.org/download/ For Windows: https://www.youtube.com/watch?v=e1MwsT5FJRQ For MAC: https://www.youtube.com/watch?v=5AOkxqFaYEE For Linux ubuntu: https://www.youtube.com/watch?v=-LwI4HMR_Eg For linux mint: https://www.youtube.com/watch?v=8FREKimc1oU
Time of Day and Day of Week variation • Hour 0 = Midnight-12:59 AM • Hour 23 = 11:00-11:59 PM • Days of the week are zero-indexed • AM Peak: 5<hour<10, 0<dow<6 • Midday: 9<hour<16, 0<dow<6 • PM Peak: 15<hour<20, 0<dow<6 • Weekend: 5<hour<20, dow = 0 or dow = 6 • Overnight (trucks only): hour<6 or hour >19
R/Rstudio Install and Set Up • Windows: https://www.youtube.com/watch?v=9-RrkJQQYqY • Mac: https://www.youtube.com/watch?v=lVKMsaWju8w • Linux Ubuntu: https://www.youtube.com/watch?v=pqrO-Jqs_2Q
R Visualization Script – gather() Image source: https://github.com/gadenbuie/tidy-animated-verbs/#tidy-data
Resources and contact information Email: fuller@tmacog.org PostGIS files: Github.com/mr-fuller/npmrds R files: Github.com/mr-fuller/inrix-congestion FHWA reporting guidance: https://www.fhwa.dot.gov/tpm/guidance/pm3_hpms.pdf Postgres download: https://www.postgresql.org/download/ R download: https://www.r-project.org/