Repository navigation
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 |
radians2degreesanddegrees2radianstoturf-helpers;