JavaScript Place Auto Complete
searchBox.addListener('place_changed', function() {
let locale = searchBox.getPlace();
console.log(locale)
console.log(locale.geometry.location.lat(), locale.geometry.location.lng()) // Latitude and Longitude - if you need them
});
Modern Manatee