-
Notifications
You must be signed in to change notification settings - Fork 942
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
Adds round(), radians2degrees() and degrees2radians() methods to @turf/helpers #715
Conversation
added angle conversion; added few tests;
To be further discussed
Worth including 👍
|
@stebogit Oops, I thought you did more modifications to the 👍 This PR. Not to sure if this should be deemed a minor release or major release since this will affect a lot of modules. |
@DenisCarriere Why don't we add an optional parameter |
@mourner's comment does reflect your change, he was mentioning we should use the mean radius which is 6371km, currently TurfJS is using 6373km (dates back over a year ago) |
@stebogit Going to implement |
Should be moved to new PR
Merging, build passes on |
I don't think there's a need. Distance calculations depend on radius linearly, meaning that for any calculated value using Earth radius you can do |
@mourner Can you confirm/approve the
Ref: #635 (comment) #635 (comment) |
@DenisCarriere I don't know where 6373 comes from, but the mean radius is 6371: https://en.wikipedia.org/wiki/Earth_radius |
radians2degrees
anddegrees2radians
toturf-helpers
;