You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Directions API does not optimize waypoints when the request specifies Optimize: true.
The issue is that the golang SDK adds optimize=true as its own query parameter, when it should be part of the waypoints query parameter as optimize:true|....
The Directions API does not optimize waypoints when the request specifies Optimize: true.
The issue is that the golang SDK adds
optimize=true
as its own query parameter, when it should be part of thewaypoints
query parameter asoptimize:true|...
.Example of working URL from https://developers.google.com/maps/documentation/directions/intro#Waypoints:
The issue here is that https://github.com/googlemaps/google-maps-services-go/blob/master/directions.go#L91 adds optimize as a separate query parameter, rather than appending the waypoint string
"optimize:true"
.The result is a broken URL:
The text was updated successfully, but these errors were encountered: