How to find distance between already saved lat and long and user current lat long in dynamodb aws?

Clash Royale CLAN TAG#URR8PPPHow to find distance between already saved lat and long and user current lat long in dynamodb aws?
I already have table called location that contains lat and long of hotel and the details, i need query to find the distance between user current location and already saved hotel lat long if less than 25kms show result in dynamoDb,
Am new to dynamoDb already i done this with mysql find distance and having used to make that 25kms condition,
Thanks in advance. i struggling with this 2 days.
1 Answer
1
No such function exists in DynamoDB. You would need to do the math to calculate the distance between the 2 coordinates yourself
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.