Add location awareness for more contextual results.
To utilize unirest for node.js install the the npm module:
$ npm install unirest
After installing the npm package you can now start simplifying requests like so:
var unirest = require('unirest');
unirest.post("https://GooglePlacesdimasV1.p.rapidapi.com/getNearbyPlaces") .header("X-RapidAPI-Key", "undefined") .header("Content-Type", "application/x-www-form-urlencoded") .send("type=undefined") .send("minimum_price=undefined") .send("keyword=undefined") .send("name=undefined") .send("maximum_price=undefined") .send("rank_by=undefined") .send("language=undefined") .send("open_now=undefined") .end(function (result) { console.log(result.status, result.headers, result.body); });