1function initialize() {
2
3 var options = {
4 types: ['(cities)'],
5 componentRestrictions: {country: "us"}
6 };
7
8 var input = document.getElementById('searchTextField');
9 var autocomplete = new google.maps.places.Autocomplete(input, options);
10}
11