Skip to content
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

append colon to encoded polylines in distance matrix query #243

Merged
merged 3 commits into from
Jun 24, 2017

Conversation

dergus
Copy link
Contributor

@dergus dergus commented Jun 6, 2017

Issue #240

@@ -504,7 +505,7 @@ public function setLanguage($language = null)
public function buildQuery()
{
$locationBuilder = function (LocationInterface $location) {
return $location->buildQuery();
return $location->buildQuery() . ($location instanceof EncodedPolylineLocation ? ':' : '');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, can't you make it part of the buildQuery method of the EncodedPolylineLocation? This way not need for the instanceof check :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@egeloen That's what I initially did but then tests for some other services failed so I came with this solution.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dergus Ok, I will give a try to your branch and look why it's not working (IMO, it is related to the API key used by the tests (which has been revoked).

@egeloen egeloen force-pushed the encoded_polyline_colon_bug_v2 branch 19 times, most recently from 4685390 to fa24e4e Compare June 24, 2017 15:36
@egeloen egeloen force-pushed the encoded_polyline_colon_bug_v2 branch from fa24e4e to 79455e2 Compare June 24, 2017 19:07
@egeloen egeloen merged commit aa055e6 into egeloen:master Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants