-
Notifications
You must be signed in to change notification settings - Fork 27
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
Ignore 0 values of latitude and longitude on client #297
Conversation
This is looking good to me. Because this is in the critical path, we should do some dogfooding. I propose:
Once you do that, leave a comment, and we can move this forward. |
This reverts commit 48bbd47.
@@ -8,17 +8,23 @@ | |||
@import Foundation; | |||
#import "CLLocation+Radar.h" | |||
|
|||
const double DEGREE_EPSILON = 0.00000001; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe obj C has this DBL_EPSILON
global const that we can use, maybe we can consider its use here? I think it can be imported with float.h
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DBL_EPSILON
is approximately 2.2e-16 which is too precise I think, it would give similar results to just using the !=
operator like we did before
@lmeier verified both 👍
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
don't replay if verified, bump version
isValid
check failed to filter out 0 coordinates previously due tolon
andlat
values not being precisely 0