New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request distanceMatrix is wrong #158

Open
Marjoel opened this Issue Mar 28, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Marjoel

Marjoel commented Mar 28, 2018

Request from distanceMatrix is wrong:

As is:

"requestUrl": "https://maps.googleapis.com/maps/api/distancematrix/json?destinations=-23.4594133%7C-46.7037871&language=PT&mode=transit&origins=-23.4531143%7C-46.704345&units=imperial&key=XXX",
  "query": {
    "destinations": "-23.4594133|-46.7037871",
    "language": "PT",
    "mode": "transit",
    "origins": "-23.4531143|-46.704345",
    "units": "imperial",
    "key": "XXX"
  }

There is a pipe between origins/destinations, this is wrong, the right is a comma between origins/destinations.

To be:

"requestUrl": "https://maps.googleapis.com/maps/api/distancematrix/json?destinations=-23.4594133%2C-46.7037871&language=PT&mode=transit&origins=-23.4531143%2C-46.704345&units=imperial&key=XXX",
  "query": {
    "destinations": "-23.4594133,-46.7037871",
    "language": "PT",
    "mode": "transit",
    "origins": "-23.4531143,-46.704345",
    "units": "imperial",
    "key": "XXX"
  }
@stephenmcd

This comment has been minimized.

Member

stephenmcd commented Mar 29, 2018

What inputs did you use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment