Closed SachaG closed 6 years ago
You've mixed up the client-side JavaScript API with the server-side API that this library supports - https://developers.google.com/maps/documentation/distance-matrix/intro#optional-parameters
Oh ok, my bad! That's pretty confusing though, also the documentation doesn't make it very easy to locate the right API docs.
I'm getting the following error when I try to make a request while specifying the
travelMode
option:Looking at the code, it seems like the proper options is not:
As specified in the docs, but instead:
This should probably be documented/corrected somewhere?