Querying AWS DynamoDB to return lat and lon result within radius
<p>I am fairly new to dynamodb and i have it setup with lambda and api gateway.</p>

<p>My dynamodb table looks like this.
<a href="https://i.stack.imgur.com/3zWGM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3zWGM.png" alt="enter image description here"></a></p>

<p>Now i am simply querying the table with the following lambda function.</p>

<pre><code>var AWS = require('aws-sdk');
var dynamoDB = new AWS.DynamoDB();

exports.handler = function(event, context) {

    /**
     * Debugging events
     * @type {[type]}
     */
    console.log("Request received:\n", JSON.stringify(event));
    console.log("Context received:\n", JSON.stringify(context));

    /**
     * Important this needs to be your Dynamo DB table name
     * @type {String}
     */
    var tableName = "Tracker";
    var datetime = new Date().getTime().toString();

    var queryData = {
        "TableName": tableName,
        "ConsistentRead": true,
        "KeyConditionExpression": "TrackIt = :val",
        "ExpressionAttributeValues": {":val": {"S": event.tid}}
    };
    dynamoDB.query(queryData, function(err, data) {
        if (err) {
            context.fail('ERROR: Dynamo failed: ' + err);
        }else{
            context.done(null,data.Items);
        }
    });

};
</code></pre>

<p>Now what i want to do is query the table based on latitude and longitude values in a certain radius say 3 miles, now i know how to do this with mysql but i would really like to know where to start when trying to do this with dynamodb.</p>

<p>I cant really find any helpful tutorials online has anyone else done this or is doing this that could point me in the right direction i would really appreciate it.</p>