I have an app that currently fires correctly on place_changed.
However, I want to branch search to behave differently when a user has selected an autocomplete entry, and when they have entered text on their own without the assistance of autocomplete.
What kind of event listener should I use to make the distinction? I cannot find any documentation on other events for Google Maps Autocomplete.
what I have now:
var gmaps = new google.maps.places.Autocomplete($("#searchproperties").get(0),
{ types: ['geocode'], componentRestrictions: {country: 'us'} });
google.maps.event.addListener(gmaps, 'place_changed', function () {
//FIRE SEARCH
});
place_changed
event. This makes it difficult to know what actually happened. – Yesteryear