-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enable uber_estimate_price to use addresses #1
Comments
Thanks! This is a great suggestion. I'll get onto the implementation later in the week. |
Hi Jono, Okay, I have:
Would you mind testing from the GitHub version of the package? Your googleway package looks awesome! Do you have a suggestion for how this might be integrated into ubeR? Best regards, |
I'll take it for a test drive tonight and let you know if I find anything not working. If you like, I can create a pull request with some code to add a mapping function, potentially callable from the price estimate (or independently). My example image was created using that code and I can wrap it up into a function compatible with your package The
|
That'd be great! Thanks, Jonathan, I look forward to seeing that. We are planning on a submission to CRAN next week and it'd be great to On 08/09/2016 04:18, Jonathan Carroll wrote:
Andrew B. Collier, PhD http://www.exegetic.biz |
I made a slight change to I edited the example coordinates (somewhere in SF) but there was only the start (thus the example fails) so I added a random end location. Update to something meaningful if you wish. |
I was going to make this a PR to add
ggmap::geocode()
processing touber_estimate_price
, but on inspecting that function, and thusubeR:::parseParameters
, I noticed that you've already implemented half of what's needed for this (you already process the parameters, they just aren't arguments).This issue is therefore to request the completion of that addition, to optionally allow addresses as arguments to
uber_estimate_price
.I'd suggest you add a little more processing to the
geocode
parsing to catch when a result can't be found. For example,works fine, but
produces
geocode failed with status ZERO_RESULTS
. By the looks ofparseParameters
this will flow through asNA
. You may want it to fail early. I need to set that one tothen it works fine.
If you really want some flashy new feature, I have some code to produce the Google Map route between the two requested points (via the
googleway
package) though it requires an API keyEverything else checks out nicely. Great work!
The text was updated successfully, but these errors were encountered: