JosiahParry / placekey

An R library to generate placekeys and interact with the placekey.io.
https://placekey.josiahparry.com
Other
17 stars 2 forks source link

Invalid H3 #21

Open RealCoChenchao opened 3 years ago

RealCoChenchao commented 3 years ago

Below is a H3 index derived by the function, however, this H3 is not a valid index. The valid index derived from Python is 8a283082a677fff for this placekey. placekey::placekey_to_h3("zzw-22y@5vg-7gt-qzz")

> [1] "8a283082a677f80"

Created on 2021-08-21 by the reprex package (v0.3.0)

Didn't dig in too much. It seems like this package is binding h3ToString, from C, different from Python.

RealCoChenchao commented 3 years ago

Follow up with a reprex with validation piece. placekey::placekey_to_h3("zzw-22y@5vg-7gt-qzz")

> [1] "8a283082a677f80"

h3jsr::is_valid("8a283082a677f80")
#> [1] FALSE

Created on 2021-08-24 by the reprex package (v0.3.0)