Closed mfrawley closed 4 years ago
struct GeoCoord
lat::Cdouble
lon::Cdouble
end
latitude/longitude in radians
so
using H3.API
H3_RES = 5
a, b = geoToH3(GeoCoord(deg2rad(53.5495), deg2rad(9.9599)), H3_RES), geoToH3(GeoCoord(deg2rad(53.5492),deg2rad(9.93109)), H3_RES)
@info h3Distance(a,b), a, b
[ Info: (0, 0x0851f1533fffffff, 0x0851f1533fffffff)
Thanks for the quick reply! I missed the comment, I even read the code and oversaw it..had a feeling I was doing something wrong. Still maybe you could add that example to the README to prevent others getting lost in the woods.
thanks to this issue.
Minimal reproducible example: Python H3 lib
produces:
(0, '851f1533fffffff', '851f1533fffffff')
This library produces:
(10, 0x08596a833fffffff, 0x08596f4cffffffff)
These points are very close to one another...am I doing something wrong or is this just a really big hairy bug?