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

Queries wrong on longitude greater than -13.5 degrees #31

Open
rohanorton opened this issue Jun 11, 2019 · 0 comments
Open

Queries wrong on longitude greater than -13.5 degrees #31

rohanorton opened this issue Jun 11, 2019 · 0 comments

Comments

@rohanorton
Copy link

Hello,

We've run into a bug where queries on coordinates with longitude greater than -13.5 degree all appear to be using the same (wrong) geohash to query.

We discovered that when we create an item using the putPoint method and then try and query that same point using either queryRectangle or queryRadius, it was consistently failing to find the item for the coordinates for our dataset of locations within the UK. Testing on coordinates in North America everything seems to work fine.

We investigated the issue by spying on the values sent to dynamo and discovered that the geohash generated for the query gets stuck at 9223372036854775807 when the longitude value was above -13.5 (we kept latitude at 40).

I was able to chart out this divergence of the query and the put request:
image
Source: https://jsfiddle.net/ndefmp49/

This trend continues well into the positives

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