UNPKG

googleplaces

Version:

Node.js library for the Google Places API

15 lines (14 loc) 355 B
(function() { "use strict"; module.exports = function (callback) { return function (response) { var responseData = ""; response.on("data", function (chunk) { if (response.headers['location']) { responseData = response.headers['location']; callback(null, responseData); } }); }; }; })();