As you may know, you can have suggestions from Google places API for city names.
By default you have to create an auto complete object with this code :
var input = document.getElementById('searchTextField');
var autocomplete = new google.maps.places.Autocomplete(input);
And the suggestions will be shown for the specified element, which is input here . But I want to get all of the suggestions and display them somewhere else. How can I do this?
thanks.
doesn’t seem like there’s an easy way, check this answer for how to intercept the JSONP