Add car journeys to trips

This commit is contained in:
Edward Betts 2026-07-08 09:09:48 +01:00
parent bc7a2e89d0
commit c6cb06b71e
9 changed files with 430 additions and 10 deletions

View file

@ -8,6 +8,8 @@ var emojiByType = {
"ferry_terminal": "🚢",
"coach_station": "🚌",
"bus_stop": "🚏",
"home": "🏠",
"car_stop": "🚗",
"accommodation": "🏨",
"conference": "🖥️",
"event": "🍷"
@ -197,7 +199,7 @@ function build_map(map_id, coordinates, routes) {
// Draw routes
routes.forEach(function(route) {
var color = {"train": "blue", "flight": "red", "unbooked_flight": "orange", "coach": "green", "bus": "purple"}[route.type];
var color = {"train": "blue", "flight": "red", "unbooked_flight": "orange", "coach": "green", "bus": "purple", "car": "#555"}[route.type];
var style = { weight: 3, opacity: 0.5, color: color };
if (route.geojson) {
L.geoJSON(JSON.parse(route.geojson), {