googlemaps / openapi-specification

OpenAPI specification for Google Maps Platform API
Apache License 2.0
102 stars 86 forks source link

DistanceMatrix : Api does not work because of how it is capitalized #299

Closed SamuelLeclerc33 closed 2 years ago

SamuelLeclerc33 commented 2 years ago

Environment details

  1. Specify the API at the beginning of the title (for example, "Places: ...") Distance matrix api on postman

  2. Library version and other environment information 1.17.10. I imported the collection from https://developers.google.com/maps/documentation/distance-matrix/start?hl=en_US#maps_http_distancematrix_start-postman

Steps to reproduce

  1. Import the collection to postman
  2. Add a destionation to the distancematrix query : https://maps.googleapis.com/maps/api/distanceMatrix/json?destinations=Washington%2C%20DC&origins=New%20York%20City%2C%20NY
  3. Send

Expected : Receive a response to my query since this is the happy path

Actual : I receive an error page image

It seems that in the provided collection, the capitalization of the word distanceMatrix is wrong. To prove this, if you try this request instead, it works fine : https://maps.googleapis.com/maps/api/distancematrix/json?destinations=Washington%2C%20DC&origins=New%20York%20City%2C%20NY image

jpoehnelt commented 2 years ago

@SamuelLeclerc33 Thank you for opening this issue. 🙏 Please check out these other resources that might be applicable:

This is an automated message, feel free to ignore.

jpoehnelt commented 2 years ago

Looks like this was already fixed in #266. The latest Postman collection has it correct: https://github.com/googlemaps/openapi-specification/blob/main/dist/google-maps-platform-postman.json#L1069