Open leetmachine opened 5 years ago
@leetmachine I wonder if this is the same issue we faced, I've found out that for 'some' (sorry I can't be more specific, I just tried one or two) aws-sdk versions the library doesn't work well. One downside it's also that it doesn't work well with the current default aws-sdk running in lambdas.
We forced aws-sdk to be a dependency (not a dev one) in our lambdas and it's now fine.
2.539.0
seems to work for us.
I hope this helps!
Hello ! Thanks for this library I tried during several month to use it. I think I tried all config but I still have an empty array as result of the queryRadius . I also tried by using the 2.539 version of aws/sdk
One thing differs : I have been using remote dynamodb (the one hosted by AWS, not a locale one)
I am also facing the same issue. Even my basic case is not working. See below issue https://github.com/rh389/dynamodb-geo.js/issues/42
using aws-sdk "version": "2.727.1"
radiusQuery
return empty everytime.
is there any way-out/solution to achieve geo-search query results?
After a week dealing with Query result empty issue here is a pckg worked for mee. Hope this helps anyone else https://www.npmjs.com/package/@trufala/dynageo
I also had the same issue with queryRectangle
where no results are returned.
It disappeared when using "aws-sdk": "^2.539.0",
, which isn't great because I'm sure there are issues that were fixed in more modern aws-sdk version. It's probably something that should be addressed.
2023 Update: I was able to get it to work using the v3 @aws-sdk/client-dynamodb
and a library that supports the v3 SDK: https://www.npmjs.com/package/dynamodb-geo-v3
@renet - looks like you’ve done a great job updating this neglected library for newer AWS SDKs. Would you like maintainer access here?
Does anyone find this solution??? I'm also getting always empty result list while doing queryRadius(). I'm using v3 aws-sdk, please help me out if anyone found this solution. Thanks!
2023 Update: I was able to get it to work using the v3
@aws-sdk/client-dynamodb
and a library that supports the v3 SDK: https://www.npmjs.com/package/dynamodb-geo-v3
I tried your solution but I'm getting this error 'Cannot read properties of undefined (reading 'geoJson')' even I have geoJson column in my Dynamodb table.
followed this guide to test out this package: https://read.acloud.guru/location-based-search-results-with-dynamodb-and-geohash- 267727e5d54f
data used is starbucks location data: https://gist.github.com/wf9a5m75/3d40f2d6814ef5f2bc4f75f61d86741e
what I expected: when radiusQuery is supplied:
radiusQuery would return the location found in the source data name: ""Starbucks - HI - Kailua 03681". This is expected because the supplied lat and long values are the matching values in the source data for this location.
what actually happened: radiusQuery returns no results.
other cases have also be found in parts Washington State.