-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
feat(location)!: nearbyGPSCoordinate
returns number tuple
#1061
feat(location)!: nearbyGPSCoordinate
returns number tuple
#1061
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #1061 +/- ##
==========================================
- Coverage 99.61% 99.60% -0.01%
==========================================
Files 2166 2164 -2
Lines 237450 236816 -634
Branches 1040 999 -41
==========================================
- Hits 236543 235888 -655
- Misses 886 906 +20
- Partials 21 22 +1
|
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.
The description text should include a hint that the user might want to use toFixed on the result and some reference how much another digit is in precision. E.g. 1 degree = 100 km. 1km = 0.01degree/ToFixed(2). We dont have to use precises values but some rough estimates. I guessed these values so you should probably verify them first.
Don't know about this. That wasn't the case before either. IMO, this is on the user side, since our responsibility is the (fake) data generation not being a wiki on how specific data should be handled. If someone requests GPS coordinates I would expect them to know how to work with them. |
Considering the other PR, should we rather introduce a |
It doesn't make sense to me that coordinates should be strings. We simply allow the input of stringified numbers due to the nature of JS. At least that's what I like to think. |
Further discussion regarding that topic please in #1066 or a separate issue/discussion. |
4cfbffb
to
ce4cd95
Compare
df391e3
to
ce9e7a5
Compare
ce9e7a5
to
0ec6d01
Compare
nearbyGPSCoordinate
to return number tuple
I eagerly put the PR title to scope in v8.0 and this will then be grouped together |
nearbyGPSCoordinate
to return number tuplenearbyGPSCoordinate
to return number tuple
nearbyGPSCoordinate
to return number tuplenearbyGPSCoordinate
returns number tuple
Discussion reference #1058.
Changes the return type of
address.nearbyGPSCoordinate()
from a string tuple to a number tuple.This is a breaking change and should not be merged before the next major release.