Algolia Places Javascript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// var algoliasearch = require('algoliasearch');
var places = algoliasearch.initPlaces('YOUR_PLACES_APP_ID', 'YOUR_PLACES_API_KEY');
places
.search(/*{REST API Params}*/, function(err, res) {
if (err) {
throw err;
}
console.log(res);
});
places
.getObject(/*{REST API Params}*/, function(err, res) {
if (err) {
throw err;
}
console.log(res);
});