-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
"Longitude value must be numeric" bad exception #70
Comments
Hi, I've added test cases for your example and they all pass. Can you provide more details on how to reproduce your observations? The bounds check accepts values with an equal value as the boundary limit: If you use an longitude value of
which is the expected result. |
|
Yes, 180 is in [-180, 180] and that's exactly what is checked for. I've explained the check in detail (#70 (comment)). |
I get
Longitude value must be numeric -180.0 .. +180.0 (given: 180)
and looks like I should be able to put 180, right?This is because in
<
instead of<=
phpgeo/src/Coordinate.php
Line 177 in 3a03fe3
The text was updated successfully, but these errors were encountered: