How to create a geospatial module with AWS lambda and dynamo db

First, let me thank you for taking the time to read my question.

My plan was to add latitude and longitude records to my faces records in dynamodb, and then use a geo library, preferably written in nodejs, to calculate nearby faces in a given radius. Thus, the plan, for example, returned people only from this 50-mile radius.

Until now, the only geo-libraries that I have tried allow me to pass the lat and long before that and confirm whether it is in the specified radius. The problem is that I have to loop the entire dynamodb table to get the results. Is there a reverse function for this in which I pass the latlong point and radius to the geo library and then the geo library gives me some latitudinal and long borders, so I can easily request it for dynamodb (e.g., (lat <: latboundary1 AND lat>: latboundary 2) AND (long <: longboundary1 AND long>: longboundary 2))

+4
source share
1 answer

nodejs , . SW NE .

.boundingCoordinates(distance, radius, inKilometers): SW NE . , . , Kilometers

+6

All Articles