Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
});
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #JavaScript #place #auto #complete
ADD COMMENT
Topic
Name
7+9 =