Thursday, 17 September 2020

Using google places API in node.js server enviroment

async codeAddressFromList(address) { const self = this; this.address = address; return self.geocoderService.geocode( { 'address': address}, function(results, status) { if (status == 'OK') { self.map.setCenter(results[0].geometry.location); self.calculateNewSquareVertex(results[0].geometry.location); self.drawRects(); } else { alert('Geocode was not successful for the following reason: ' + status); } }); },

Submitted September 17, 2020 at 02:14PM by Gabotron_ES

No comments:

Post a Comment