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(): out of bounds #110

Closed
JosiahParry opened this issue Oct 13, 2022 · 0 comments
Closed

Improve error handling osrmIsochrone(): out of bounds #110

JosiahParry opened this issue Oct 13, 2022 · 0 comments

Comments

@JosiahParry
Copy link

When providing a number that is out of bounds for longitude and latitude an error message says the provided values are non-finite.
This should error with a more appropriate message like "[lon/lat] is bounded by the interval [-180, 180]"

# provide informative error for out of bounds vector coordinates
osrmIsochrone(c(700, -999), breaks = seq(0, 12, 3))
#> Error in seq.default(from = xf - dmax, to = xf + dmax, length.out = res) : 
#>   'from' must be a finite number
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