googlemaps / google-maps-services-js

Node.js client library for Google Maps API Web Services
Apache License 2.0
2.87k stars 631 forks source link

Distance Matrix URL returns ?origin=*&destination=*key=* instead of ?origins=*&destinations=*key=* #928

Open tmcdonald030 opened 1 year ago

tmcdonald030 commented 1 year ago

When making a distancematrix() request the URL that is returned is incorrect as it has "origin" and "destination" instead of "origins" and "destinations".

This returns status 'INVALID_REQUEST'. If I copy the URL in to a browser and change origin to origins and destination to destinations in the url data is pulled correctly.

wangela commented 1 year ago

@tmcdonald030 Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.