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

geocode function failed when involving bad request among multiple location inputs #220

Open
zhiruiwang opened this issue May 18, 2018 · 1 comment

Comments

@zhiruiwang
Copy link

When using geocode function, if:
(1) the location parameter is a multiple-element vector,
(2) one of the element will return a bad request,
(3) output parameter is "more"
Then the whole request will fail

library(ggmap)
geocode(c("CASIRATE  D\u0092ADDA Italy","Shanghai"),output = "more")

Get the following warning:

Error in list_to_dataframe(res, attr(.data, "split_labels"), .id, id_as_factor) : 
  Results must be all atomic, or all data frames
@zhiruiwang
Copy link
Author

The problem is failedGeocodeReturn function returns a named vector instead of a data.frame, this will cause problem when ldply function wants to combine named vectors and data.frames.
Already created a PR to solve this problem:#219

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

No branches or pull requests

1 participant