googlemaps / google-maps-services-go

Go client library for Google Maps API Web Services
https://pkg.go.dev/googlemaps.github.io/maps
Apache License 2.0
748 stars 215 forks source link

distancematrix 'avoid' multiple is deprecated #78

Closed Loster83 closed 8 years ago

Loster83 commented 8 years ago

According to the documentation for distancematrix in 'avoid' parameter you can use only one restriction. But your implementation supports multiple: https://github.com/googlemaps/google-maps-services-go/blob/master/distancematrix.go#L88

If you look at java client - it allows only single restriction: https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/DistanceMatrixApiRequest.java#L122

domesticmouse commented 8 years ago

So my handling of Avoid parameter for DIstanceMatrix was completely broken. I believe it should now work as advertised. Thanks!