diff --git a/app.py b/app.py
index 885f1c4..9a14b3f 100644
--- a/app.py
+++ b/app.py
@@ -6,17 +6,19 @@ app=Flask(__name__)
app.config['CACHE_TYPE']='SimpleCache'
cache=Cache(app)
+data=requests.get("https://tarc.rideralerts.com/InfoPoint/rest/Routes/GetVisibleRoutes").json()
+routes=",".join(str(r.get("RouteId")) for r in data)
+data=requests.get("https://tarc.rideralerts.com/InfoPoint/rest/Stops/GetAllStops").json()
+stops={s.get("StopId"):[s.get("Latitude"),s.get("Longitude")] for s in data}
+
@app.route("/")
def index():
- return render_template("map.html")
+ return render_template("map.html",stops=stops)
@app.route("/bus.svg")
def favicon():
return send_from_directory(app.static_folder,"bus.svg")
-data=requests.get("https://tarc.rideralerts.com/InfoPoint/rest/Routes/GetVisibleRoutes").json()
-routes=",".join(str(r.get("RouteId")) for r in data)
-
@app.route("/tarc.csv")
@cache.cached(timeout=5)
def tarc():
diff --git a/templates/map.html b/templates/map.html
index 4087cc2..9a434f9 100644
--- a/templates/map.html
+++ b/templates/map.html
@@ -8,12 +8,17 @@
+