- 
                Notifications
    
You must be signed in to change notification settings  - Fork 525
 
Encode "extra" information in unused digits of H3 indexes #1025
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
base: master
Are you sure you want to change the base?
Conversation
| 
           Do we need a separate function for unused digits? I'd be happy with general  And we'd also probably want   | 
    
          
 I think it is helpful to have specific functions for this.  Another value of separate functions here is that they can guide the user how to use the "extra" information. It surfaces that this is something that can actually be done with the indexes because it's a top-level API, it guides the user what the range of valid values to encode are (not obvious without computing the mask), and single-function-call encoding of that data (important for e.g. SQL where multiple H3 API calls is tricky.) 
 I am thinking specifically of the "extra" information. I don't think   | 
    
| 
           Makes sense for this to focus just on the unused bits. I'm just wondering, though, have we seen many use cases for this in the past? Or what use cases do you have in mind?  | 
    
          
 I've seen use cases discussed in the context of entity (point of interest) addressing. I am not sure too many implementations of this exist in the wild, I imagine part of that is because it is trickier for an application to understand how to manipulate the H3 indexes. The other concern is the stability of assigned IDs.  | 
    
| 
           Another thing I would consider adding here is a "normalize index" function, that takes an index and ORs it with the expected 7 indexing digits, so that doesn't need chained function calls to get back to the spatial (no additional encoded data) version of the H3 index.  | 
    
| 
           We discussed offline a few weeks ago and I think we decided that we wanted to avoid having functions that encourage or guide users towards creating invalid cells, because we would then need to keep track of which functions work on "invalid" cells vs "valid" cells only, which could get confusing. @isaacbrodsky, can we close this?  | 
    
No description provided.