Skip to content

Commit

Permalink
ui: web: Allow passing preselected start and destination (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert authored Mar 15, 2024
1 parent 413415e commit 6c30f88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
simulationTime = initialPermalink.timestamp;
}

let fromLocation = params.get("fromLocation")
let toLocation = params.get("toLocation")

let langParam = params.get("lang");
let language = langParam || "de";

Expand All @@ -56,8 +59,8 @@
motisParam: params.get("motis"),
timeParam: timeParam,
langParam: langParam,
fromLocation: null,
toLocation: null,
fromLocation: fromLocation,
toLocation: toLocation,
fromModes: null,
toModes: null,
intermodalPprMode: null,
Expand Down

0 comments on commit 6c30f88

Please sign in to comment.