Skip to content

Commit 1b477d6

Browse files
committed
chore(5-min-viz): add more data to the info box on the landing page
1 parent 0b2313b commit 1b477d6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pems_data/src/pems_data/services/stations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def get_district_metadata(self, district_number: str) -> pd.DataFrame:
5252
cache_opts = {"key": self._build_cache_key("metadata", "district", district_number), "ttl": 3600} # 1 hour
5353
columns = [
5454
"STATION_ID",
55+
"CONTROLLER_ID",
5556
"NAME",
5657
"PHYSICAL_LANES",
5758
"STATE_POSTMILE",

pems_streamlit/src/pems_streamlit/components/map_summary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ def map_district_summary(df_station_metadata: pd.DataFrame):
1313

1414
with info_col:
1515
with st.container(border=True):
16+
st.markdown(f"**Directional Distance** {df_station_metadata['LENGTH'].sum().round(1)} miles")
17+
st.markdown(f"**Freeways** {df_station_metadata['FREEWAY'].nunique()}")
1618
st.markdown(f"**Stations** {df_station_metadata['STATION_ID'].nunique()}")
19+
st.markdown(f"**Controllers** {df_station_metadata['CONTROLLER_ID'].nunique()}")
1720

1821

1922
def map_station_summary(df_station_metadata: pd.DataFrame):

0 commit comments

Comments
 (0)