I'm trying use Places API from Google frmo a node.js server
This is the url I'm trying to access.
Which is the best way to process request from server?
Thanks!
Use https.get or https.request.
const https = require("https");
https.get("https://maps.googleapis.com/maps/api/place/textsearch/json?query=parkings+in+Madrid,Spain&sensor=true&key=key", function(res) {
console.log("Got response: " + res.statusCode);
}).on('error', function(e) {
console.log("Got error: " + e.message);
});