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

Not found tz for coords: 53.3357911103805, 83.6486383092998 #51

Closed
mcccccccccc opened this issue Feb 13, 2025 · 2 comments · Fixed by #52
Closed

Not found tz for coords: 53.3357911103805, 83.6486383092998 #51

mcccccccccc opened this issue Feb 13, 2025 · 2 comments · Fixed by #52

Comments

@mcccccccccc
Copy link

Get error for:
/tz/53.3357911103805/83.6486383092998

But /tz/53/83 OK.

Why?

@noandrea
Copy link
Owner

noandrea commented Feb 18, 2025

thanks for the reporting, the tl;dr is because geo2tz is giving up finding the location too quickly.

the longer explanation is, the search is done in two steps, first it gets all the bounding boxes that contains that point, then it goes to search in which exact region the point lays. currently it search for the first 5 matching regions and then it gives up, in this particular case, the point is not contained in the first 5 regions found.

I have included a test for this particular location and increased the lookup to 30

@noandrea
Copy link
Owner

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

Successfully merging a pull request may close this issue.

2 participants