You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to follow the very basic tutorial of Geo Library for Amazon DynamoDB given here https://www.npmjs.com/package/dynamodb-geo. Even after following the steps mentioned in link, my myGeoTableManager.queryRadius() call is not giving me any result. Below are the steps that I follow.
I created the dynamoDB table with below script
require("dotenv").config();
var AWS= require('aws-sdk');
AWS.config.update({accessKeyId: process.env.accessKeyId, secretAccessKey: process.env.secretAccessKey, region: "us-east-1"});
const ddb = new AWS.DynamoDB();
const ddbGeo = require('dynamodb-geo');
const config = new ddbGeo.GeoDataManagerConfiguration(ddb, 'locationData');
config.hashKeyLength = 5;
const createTableInput = ddbGeo.GeoTableUtil.getCreateTableRequest(config);
// Tweak the schema as desired
createTableInput.ProvisionedThroughput.ReadCapacityUnits = 5;
console.log('Creating table with schema:');
console.dir(createTableInput, { depth: null });
// Create the table
ddb.createTable(createTableInput).promise()
// Wait for it to become ready
.then(function () { return ddb.waitFor('tableExists', { TableName: 'locationData' }).promise() })
.then(function () { console.log('Table created and ready!') });
Then I insert and query data in dynamoDB using below script.
I am trying to follow the very basic tutorial of Geo Library for Amazon DynamoDB given here https://www.npmjs.com/package/dynamodb-geo. Even after following the steps mentioned in link, my myGeoTableManager.queryRadius() call is not giving me any result. Below are the steps that I follow.
I created the dynamoDB table with below script
Then I insert and query data in dynamoDB using below script.
Even with exactly same latitude and longitude, myGeoTableManager.queryRadius() is giving me empty response.
The text was updated successfully, but these errors were encountered: