rodazuero / gmapsdistance

Future
GNU General Public License v3.0
75 stars 40 forks source link

Fix duration and duration_in_traffic #38

Closed davidzarruk closed 6 years ago

davidzarruk commented 6 years ago

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.

Demetrio92 commented 6 years ago

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.