-
Notifications
You must be signed in to change notification settings - Fork 137
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
Unable to convert cell Id to lat lng #448
Comments
I am receiving this as H3CellId in starlink telemetry API streaming data. |
It has been a while since I looked into Starlink, but as I recall, they don't use H3, but their own hex grid with a different ID system. If Even if I convert |
Yes, that's my concern too. Passing the string in h3toGeo in h3-js gives lat,lng of the cell. Let me look for solutions for this in starlink docs. |
cell_id = 600090378170794000
the above cell is converted using h3-js successfully, in python it gives invalid cell ID error.
I tried with all function of h3-py i.e. api functions(basic_int, basic_str etc).
also found that python hex output is different from javascript output. So created below function to match the output.
def _hex(num):
rounded = int(float(num))
return hex(rounded)[2:].lower()
I'm using below function to convert to lat lng.
h3.cell_to_latlng
Still getting error of invalid cell ID.
Another Cell ID: 601803032887296000
h3-py version: 4.2.1
The text was updated successfully, but these errors were encountered: