Answers for "google places autocomplete just cities"

2

google places autocomplete just cities

function initialize() {

 var options = {
  types: ['(cities)'],
  componentRestrictions: {country: "us"}
 };

 var input = document.getElementById('searchTextField');
 var autocomplete = new google.maps.places.Autocomplete(input, options);
}
Posted by: Guest on October-28-2020

Code answers related to "google places autocomplete just cities"

Code answers related to "Javascript"

Browse Popular Code Answers by Language