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

Improve error handling osrmIsochrone(): character vector of location #111

Closed
JosiahParry opened this issue Oct 13, 2022 · 1 comment
Closed

Comments

@JosiahParry
Copy link

When providing a character vector of length 2 with valid coordinates the user is informed that they should provide a vector of coordinates.

informing the user that the values must be numeric would be more ergonomic / informative to the user e.g. Error: "loc" must be a numeric vector of length 2.

osrmIsochrone(c("10", "20"), breaks = seq(0, 12, 3))
#> Error: "loc" should be a vector of coordinates, i.e., c(lon, lat).
@rCarto rCarto closed this as completed in 279a044 Oct 13, 2022
@JosiahParry
Copy link
Author

You're quick!

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

No branches or pull requests

1 participant