Closed edasmalchi closed 1 year ago
Wanted to flag that @tiffanychu90 figured out generating speedmap links from the portfolio -- sharing here:
RT_SITE_YAML = "../portfolio/sites/rt.yml"
# Grab list of ITP IDs with GTFS RT speedmaps
rt_itp_id_dict = deploy_portfolio_yaml.check_if_rt_data_available(RT_SITE_YAML)
if itp_id in list(rt_itp_id_dict.keys()):
# Construct the URL
RT_URL = ("https://analysis.calitp.org/rt/"
f"district_{district_number}-{district_name}/"
f"{rt_itp_id_dict[itp_id]}__speedmaps__"
f"district_{district_number}-{district_name}__"
f"itp_id_{itp_id}.html"
)
# If this ITP ID is found in RT analysis, give URL to that operator in analysis.calitp.org
display(HTML(f'''<a href={RT_URL}>GTFS RT speedmaps here.</a>'''))
else:
display(HTML("No GTFS RT data available."))
Summary
As a transit agency or other interested stakeholder, I want to know if my agency currently publishes a GTFS-RT feed so that I know whether or not we are providing realtime information to riders. Additionally, I want to be able to see my speedmap if available so that I can work with Caltrans and other jurisdictions to advance transit priority projects.
Acceptance Criteria
Notes
Ideally this could be implemented soon, before GTFS-RT mart tables are fully built out. One approach could be to generate the links from https://github.com/cal-itp/data-analyses/blob/main/portfolio/sites/rt.yml
Tester [Stakeholder]
Sprint Ready Checklist