Add map fixture.

This commit is contained in:
Edward Betts 2025-11-13 06:42:12 +00:00
parent 178c669b01
commit 6d899113ce
2 changed files with 62 additions and 0 deletions

View file

@ -477,6 +477,22 @@ def trip_past_list() -> str:
)
@app.route("/fixture/map")
def fixture_trip_map() -> str:
"""Map of trips."""
trips = get_trip_list()
coordinates, routes = agenda.trip.get_coordinates_and_routes(trips)
return flask.render_template(
"fixture/map.html",
heading="Trip map",
trips=trips,
coordinates=coordinates,
routes=routes,
get_country=agenda.get_country,
)
@app.route("/trip/future")
def trip_future_list() -> str:
"""Page showing a list of future trips."""