Google Maps Travel Time - mode option

It would be nice if the option mode could be a value and not a fixed string. This would allow me to change mode from the ui just as I can change origin and destination