dynamodb-geo.js icon indicating copy to clipboard operation
dynamodb-geo.js copied to clipboard

only negative longitude works positive longitude return empty resultset

Open keytabdev opened this issue 2 years ago • 5 comments

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 avatar Apr 05 '23 21:04 keytabdev

@keytabdev Did you find a solution for this? I'm also running into the same issue. Please let me know.

ajazmohammed avatar Jun 12 '23 22:06 ajazmohammed

I'm running into the same issue.

levinunnink avatar Jul 06 '23 14:07 levinunnink

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.

darksun avatar Jul 24 '23 16:07 darksun

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.

keytabdev avatar Jul 29 '23 14:07 keytabdev

Also running into the same issue

Jurajzovinec avatar Nov 05 '23 17:11 Jurajzovinec