ctucx.git: trainsearch

web based trip-planner, fork of https://cyberchaos.dev/yuka/trainsearch

commit 89801af538aef7f76eb7f0a0e76be63ec462cadb
parent 79ef3818195ae160936d8cac9f085637887db926
Author: Yureka <yuka@yuka.dev>
Date: Mon, 13 Jan 2025 21:05:54 +0100

oebb profile
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/hafas_client.js b/src/hafas_client.js
@@ -21,6 +21,10 @@ export const getHafasClient = async profileName => {
 				const { profile: nahshProfile } = await import('hafas-client/p/nahsh');
 				profile = nahshProfile;
 				break;
+			case "oebb":
+				const { profile: oebbProfile } = await import('hafas-client/p/oebb');
+				profile = oebbProfile;
+				break;
 			default:
 				throw "Unknown profile name: " + profileName;
 		}
diff --git a/src/settingsView.js b/src/settingsView.js
@@ -28,6 +28,7 @@ const settingsTemplate = () => html`
 		<label><input type="radio" name="profile" ?checked=${settings.profile === 'db'} value="db"> DB</label><br>
 		<label><input type="radio" name="profile" ?checked=${settings.profile === 'nahsh'} value="nahsh"> NAH.SH (${t("experimental")})</label><br>
 		<label><input type="radio" name="profile" ?checked=${settings.profile === 'bvg'} value="bvg"> BVG (${t("experimental")})</label><br>
+		<label><input type="radio" name="profile" ?checked=${settings.profile === 'oebb'} value="oebb"> ÖBB (${t("experimental")})</label><br>
 		<!--<label><input type="radio" name="profile" ?checked=${settings.profile === 'sncb'} value="sncb"> SNCB (${t("experimental")})</label><br>-->
 		<!--<label><input type="radio" name="profile" ?checked=${settings.profile === 'sncf'} value="sncf"> SNCF (${t("experimental")})</label><br>-->
 		<br>