smomtaz commited on
Commit
b5a55c5
·
verified ·
1 Parent(s): 64dfa95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -27
app.py CHANGED
@@ -3,7 +3,6 @@ from utils import create_nav_button
3
  from shiny import App, ui
4
  import shinyswatch
5
  from server import create_server
6
- import numpy as np
7
 
8
  app_ui = ui.page_fluid(
9
  ui.tags.style("""
@@ -43,14 +42,14 @@ app_ui = ui.page_fluid(
43
  button_icon="house",
44
  button_label_text="Homepage",
45
  button_link="https://rsginc-nvtbs.hf.space",
46
- #button_cls="btn btn-secondary"
47
  ),
48
 
49
  create_nav_button(
50
  button_icon = "route",
51
  button_label_text = "Origin-Destination",
52
  button_link = "https://rsginc-nvtbsod.hf.space",
53
- button_cls="btn btn-secondary"
54
  ),
55
 
56
  create_nav_button(
@@ -93,34 +92,39 @@ app_ui = ui.page_fluid(
93
  ),
94
  # Tabs inside a card
95
  ui.card(
96
- ui.navset_card_underline(
97
- ui.nav_panel(
98
- "Bar Chart",
99
- ui.div(
100
- ui.h2("Bar Chart", style="text-align: center;"),
101
- ui.output_plot("bar_chart"), # Output for bar chart
102
- class_="chart-container",
103
- ),
104
- ),
105
- ui.nav_panel(
106
- "Pie Chart",
107
- ui.div(
108
- ui.h2("Pie Chart", style="text-align: center;"),
109
- ui.output_plot("pie_chart"), # Output for pie chart
110
- class_="chart-container",
111
- ),
112
  ),
113
- ui.nav_panel(
114
- "Blank Tab",
115
- ui.div(
116
- ui.h2("Stacked Bar Chart", style="text-align: center;"),
117
- ui.output_plot("stacked_bar_chart"), # Output for pie chart
118
- class_="chart-container",
119
- ),
 
 
 
 
 
 
 
120
  ),
 
121
  ),
122
  style="padding: 10px; margin-top: 20px;",
123
- class_="tabbed-card",
124
  ),
125
  )
126
  ),
 
3
  from shiny import App, ui
4
  import shinyswatch
5
  from server import create_server
 
6
 
7
  app_ui = ui.page_fluid(
8
  ui.tags.style("""
 
42
  button_icon="house",
43
  button_label_text="Homepage",
44
  button_link="https://rsginc-nvtbs.hf.space",
45
+ button_cls="btn btn-secondary"
46
  ),
47
 
48
  create_nav_button(
49
  button_icon = "route",
50
  button_label_text = "Origin-Destination",
51
  button_link = "https://rsginc-nvtbsod.hf.space",
52
+ #button_cls="btn btn-secondary"
53
  ),
54
 
55
  create_nav_button(
 
92
  ),
93
  # Tabs inside a card
94
  ui.card(
95
+ ui.h2("Study Scope", style="margin: 0; font-size: 28px; font-weight: bold;"),
96
+ ui.div(
97
+ ui.markdown(
98
+ """
99
+ The Napa Valley Travel Behavior Study (TBS) builds on data received from the 2014 TBS using more cost-effective and advanced data collection tools. The TBS focuses on work, school, and other trips in Napa Valley. The study identifies how many trips per day are associated with visitors, residents and employees, where those trips start and end, and the predominant modes and times of travel. The study takes into account seasonal variations, as well as weekday and weekend travel.
100
+
101
+ Since completing the previous Napa Valley TBS in 2014, Fehr & Peers has utilized similar data collection methods but with enhancements and refinements that minimize the shortcomings of the previous approach. Through coordination with data providers, Fehr & Peers has a better understanding of available data products, including the advantages and limitations of each data source. The goal of this study is to capitalize on new data sources, be more cost-effective, and obtain a more comprehensive dataset specific to the Napa Valley.
102
+
103
+ This report describes the methodologies used to update and present a summary of the travel patterns and characteristics identified in Napa Valley. The resulting data will provide the basis for multiple planning efforts by the Napa Valley Transportation Authority (NVTA) and jurisdictions within Napa County. Such uses may include but are not limited to the refinement of the Napa Travel Model, the Short Range Transit Plan and the update of the Countywide Transportation Plan. The data is also expected to inform future transit service expansion in Napa County.
104
+
105
+ Travel surveys are the traditional approach for gathering travel behavior data since the information is more robust than a typical traffic count process. These traditional survey methods are costly and usually result in very small sample sizes. They are also prone to human error during the data collection process as well as from the survey responders who may misinterpret the questions. In order to minimize the shortcomings of traditional approaches, Fehr & Peers evaluated various innovative data collection techniques as well as enhancements to traditional methods for use in this study.
106
+
107
+ For the TBS update, Fehr & Peers purchased Cuebiq based origin-destination mobile device data from StreetLight Data1 given their demonstrated experience and success supporting similar travel behavior studies across California, including the previous Napa Valley TBS. StreetLight Data was also selected because of their InSight Portal which offers a quick, convenient, and flexible method for obtaining data, as well as their ability to provide advanced metrics such as trip lengths, trip purposes, and demographic information based on observed home locations. After obtaining this data, it was scaled using newly collected traffic count data and the results were combined to provide a robust, comprehensive dataset, specific to Napa County.
108
+ """
 
 
109
  ),
110
+ style="margin-top: 10px; font-size: 16px; line-height: 1.5;"
111
+ ),
112
+ ui.h2("Visualizer Pages", style="margin: 0; font-size: 28px; font-weight: bold;"),
113
+ ui.div(
114
+ ui.markdown(
115
+ """
116
+ The visualizer prodives the travel behaviour based on big data. The key tabs are as follows:
117
+
118
+ - **Home**: The general description of the project and the visualizer tool
119
+ - **Origin-Destination tab**: Provides detail visual information on the travel pattern observed through the big-data
120
+ - **VMT**: Provides the VMT and PMT of the trips asscociated to Napa valley trips
121
+ - **Truck**: Provides the commercial trip pattern for the Napa Valley
122
+ - **Airline**: Provides air-travel to and from Napa Valley.
123
+ """
124
  ),
125
+ style="margin-top: 10px; font-size: 16px; line-height: 1.5;"
126
  ),
127
  style="padding: 10px; margin-top: 20px;",
 
128
  ),
129
  )
130
  ),