dynamodb-geo.js
dynamodb-geo.js copied to clipboard
only negative longitude works positive longitude return empty resultset
Hi,
Thanks for the amazing work in porting this library. I was trying to use it and noticed that it works only for negative longitude, for positive longitude I get empty result-set.
For example if I have a dataset of [ { "position": { "lat": 15.478500, "lng": -73.924789 }, "name": "Starbucks - 00001", "address": "Address 1", "phone": "907-277-2477" }, { "position": { "lat": 15.43785403, "lng": 74.88716686 }, "name": "Starbucks - 00002", "address": "Address 2", "phone": "907-277-2477" } ]
querybyradius works only for the -ve longitude value. I am not sure if I am doing something incorrectly. Can you please let me know
@keytabdev Did you find a solution for this? I'm also running into the same issue. Please let me know.
I'm running into the same issue.
There was/is an issue with how Long is checked that was fixed here - https://github.com/robhogan/dynamodb-geo.js/pull/36
It was merged but a new version of the package was never published. Try your test case with this change included a see if it helps.
Thanks so much for your response. I will check and get back.
Regards,
Sameer
---- On Mon, 24 Jul 2023 21:34:03 +0530 Adam Lanners @.***> wrote ---
There was/is an issue with how Long is checked that was fixed here - https://github.com/robhogan/dynamodb-geo.js/pull/36
It was merged but a new version of the package was never published. Try your test case with this change included a see if it helps.
— Reply to this email directly, https://github.com/robhogan/dynamodb-geo.js/issues/66#issuecomment-1648197393, or https://github.com/notifications/unsubscribe-auth/AXQXBWAVJUZPQAFAKUA4OGLXR2MHHANCNFSM6AAAAAAWUTAN7Q. You are receiving this because you were mentioned.
Also running into the same issue