Fixed problem with "duration" and "duration in traffic" when the mode was set to "driving". Now, the function returns both duration and duration in traffic.
I merged your PR through a formal merge, however, I manually removed most of the code. It contradicts most of the examples and previous behaviour of the function, where only one "time" was returned.
Fixed problem with "duration" and "duration in traffic" when the mode was set to "driving". Now, the function returns both duration and duration in traffic.