Open sinevitch opened 3 years ago
let result = await store.nearby({ latitude: lat, longitude: lng }, 30);
You can use util.promisify to wrap it in a promise and then use await.
let result = await store.nearby({ latitude: lat, longitude: lng }, 30);