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

added Find Place API call #131

Merged
merged 2 commits into from
Dec 10, 2018
Merged

added Find Place API call #131

merged 2 commits into from
Dec 10, 2018

Conversation

rossiter10
Copy link
Contributor

(2nd attempt)
Added the "Find Place" API call, request, and response classes.
https://developers.google.com/places/web-service/search#FindPlaceRequests

And added one unit test for now so something was there at least.


AssertInconclusive.NotExceedQuota(result);
Assert.AreEqual(Status.OK, result.Status);
Assert.AreEqual("ChIJL3osJJksDogRodsJu9TjTQA", result.Candidates.FirstOrDefault()?.PlaceId);
Copy link
Owner

@maximn maximn Dec 9, 2018

Choose a reason for hiding this comment

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

This is very fragile, in a while (few months) the first candidate will have another ID and this test will break.

You can do something like

  • have more than 1 candidate
  • the first candidate has an ID longer than x (10?) characters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, swapped the test with something similar to one of the place details test, and added one more test that seemed relevant.

@maximn maximn merged commit 1f28153 into maximn:master Dec 10, 2018
@maximn
Copy link
Owner

maximn commented Dec 10, 2018

Did you run these tests? Looks like failing - https://travis-ci.org/maximn/google-maps/builds/466175042

@rossiter10
Copy link
Contributor Author

Crap, sorry. I have them passing now in my branch. Do I need to do a separate PR?

@maximn
Copy link
Owner

maximn commented Dec 11, 2018

Yes.

@maximn
Copy link
Owner

maximn commented Dec 11, 2018

Nuget - 0.78.0

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.

2 participants