-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add faces, distance and miscellaneous functions #46
Conversation
Pull Request Test Coverage Report for Build 617809629
💛 - Coveralls |
3d9edd6
to
af57f7b
Compare
af57f7b
to
f0831fc
Compare
I think you can remove #45 from this PR's description. |
Also, this code is giving me all 0s when using your fork, all the three package main
import (
"fmt"
"github.com/uber/h3-go/v3"
)
func main() {
pt := h3.GeoCoord{
Latitude: 38.8935128,
Longitude: -77.1546608,
}
for i := 0; i < 16; i++ {
h := h3.FromGeo(pt, i)
fmt.Println(h3.ExactEdgeLengthRads(h), h3.ExactEdgeLengthKm(h), h3.ExactEdgeLengthM(h))
}
} I'm running it with a go.mod setup like this module example.org/server
go 1.16
replace github.com/uber/h3-go/v3 => github.com/retbrown/h3-go/v3 v3.0.3-0.20210303141742-f0831fcf37f8
require github.com/uber/h3-go/v3 v3.7.0 Should I open a new issue here, after this gets merged? I didn't try out the |
The package main
import (
"fmt"
"github.com/uber/h3-go/v3"
)
func main() {
pt := h3.GeoCoord{
Latitude: 38.8935128,
Longitude: -77.1546608,
}
for i := 0; i < 16; i++ {
h := h3.FromGeo(pt, i)
fmt.Println(h3.ExactEdgeLengthRads(h3.ToUnidirectionalEdges(h)[0]), h3.ExactEdgeLengthKm(h3.ToUnidirectionalEdges(h)[0]), h3.ExactEdgeLengthM(h3.ToUnidirectionalEdges(h)[0]))
}
} Outputs
|
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.
outstanding!
@retbrown can this be merged? |
Hi @phanirithvij, Sadly I don't have permissions on the repo to merge any code |
Add functions to cover all functions in the current version of H3 except the two experimental prefixed functions (experimentalH3ToLocalIj and experimentalLocalIjToH3)
At a minimum it covers the functions mentioned in #29 and #44