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

h3 import calls are obsolete #54

Open
djconly85 opened this issue Oct 21, 2024 · 0 comments
Open

h3 import calls are obsolete #54

djconly85 opened this issue Oct 21, 2024 · 0 comments

Comments

@djconly85
Copy link

djconly85 commented Oct 21, 2024

After updating to the latest version of gtfs_functions.py, I received ImportError: cannot import name 'geo_to_h3' from 'h3' when running from gtfs_functions import Feed.

I looked at the h3 version 3 documentation and it appears that both geo_to_h3 and k_ring no longer are valid for h3 version 4. I then confirmed that my update also updated h3 to be version 4.

As a test, made the following changes in this script:

  • Changed all instances of geo_to_h3 to cell_to_latlng
  • Changed all instances of k_ring to grid_disk

After making these changes, the module is now working as expected. I'm not sure if this is an issue all users have experienced but I figured I would flag it.

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

1 participant