0👍
Use this fetchAddress function instead of locateAddress. This functions works and searches required places.
fetchAddress: function(address){
new google.maps.Geocoder().geocode({ address: this.address }, function(results, status) {
if(status === google.maps.GeocoderStatus.OK) {
var map = new google.maps.Map(document.getElementById('map'), {
center: results[0].geometry.location,
zoom: 5
}
)}
});
}
}
});
Source:stackexchange.com