Skip to content
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

hexRangeDistances function in 4.x #430

Closed
gherka opened this issue Nov 22, 2024 · 4 comments
Closed

hexRangeDistances function in 4.x #430

gherka opened this issue Nov 22, 2024 · 4 comments

Comments

@gherka
Copy link

gherka commented Nov 22, 2024

Are there plans to port the hexRangeDistances function to the 4.x API? It's currently only available in 3.x. If not, are there alternative ways to achieve the same output?

@ajfriend
Copy link
Contributor

Would something like this work for you?

def grid_disk_distances(h, k):
    return [h3.grid_ring(h,i) for i in range(k)]

@gherka
Copy link
Author

gherka commented Nov 25, 2024

Thanks! That seems to work.

Noticed a couple of other functions that I use in my project and don't seem to be there in 4.x:

h3_to_geo_boundary
h3_to_geo
h3.polyfill_geojson() - can't seem to find a reference to it in the 3.x docs. Maybe it was an undocumented function?

Are there alternative implementations of these in 4.x or am I better off just staying on 3.x for the time being?

@ajfriend
Copy link
Contributor

@ajfriend
Copy link
Contributor

ajfriend commented Dec 6, 2024

Closing for now. Let me know if you have any additional questions.

@ajfriend ajfriend closed this as completed Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants