Demos and example code

Widget API

TP (Trip planner)

data-hfs-widget-tp-postform
"newtab" | "default"
By "default" the WebApp opens in the same window/tab where the widget is located. By setting the parameter to "newtab" a new tab/window will be used to open the WebApp.
data-hfs-widget-tp-[dep/arr]
hfsLocation (HAFAS-ID), String (Location Name)
By using this parameter you can set the departure and/or arrival location in advance.
data-hfs-widget-tp-date
Date (HCI Format)
By using this parameter you can set the prefilled date for the widget.
data-hfs-widget-tp-time
Time (HCI Format)
By using this parameter you can set the prefilled time for the widget.
data-hfs-widget-tp-targeturl
URL, f.e. "https://mobiliteit.conceptfactory.lu/fr/planificateur/"
By using this parameter you can set the URL which will be called when submitting the form.
data-hfs-widget-switches-layout
"default" | "homepage"
By using this parameter you can set the layout of the widget.