Google places autocomplete does not always fire place_changed on location selection

1,871 views
Skip to first unread message

Andre Wilson

unread,
Oct 12, 2011, 1:02:12 AM10/12/11
to google-map...@googlegroups.com
 

I currently am trying to integrate the google places auto complete facility into my website so that I can use it to easily retrieve location information such as latitude and longtitude of an address.

However I have noticed that although the auto complete will give drop down options to select from when I enter in an address it does not always fire the place_changed event when I select that address from the shown list. This problem appears to only be evident primarily when I have not specified a type i.e. establishment or geocode. When I specify the geocode option the address appears to be found appropiately.

To double check it wasn't something I was doing I am able to replicate the issue on the demo example at:

Google places example

The address I can trigger this repeatably on is when I type in Auckland airport and select the Auckland Airport, Auckland, New Zealand option from the returned results. When I do this nothing happens. However when I select geocodes only selecting this option appears to work.

I would like to have both establishments and geocodes searching abilities if possible.

Any ideas or help would be appreciated.

Chris Broadfoot

unread,
Oct 12, 2011, 9:33:28 AM10/12/11
to google-map...@googlegroups.com
Hi Andre,

I can't reproduce this on Chrome/OS X. What browser are you using?

How are you selecting the Place? Through keyboard shortcuts (down-down-enter) or with the mouse?

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/1f8cHXJjSZUJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Andre Wilson

unread,
Oct 13, 2011, 2:45:08 AM10/13/11
to google-map...@googlegroups.com
Thanks for replying Chris.  I didn't even think of it possibly being a browser issue.  I have since tried and it seems to  be working as expected.

The browser I was using at the time was Firefox 3.6.23.

The action I was taking was:

- Type Auckland Airport
- Down down enter on the keyboard

I identified nothing was happening as I was handling the event and outputting the results onto a span on the page.  There were no javascript errors occuring.

Today I tried it on chrome, Firefox 3.6.23 and IE 8 and it all works as I would expect.  So, I'm not sure what the situation was that was causing the initial issue.

Thanks for the prompt reply

Andre Wilson

unread,
Oct 13, 2011, 2:50:55 AM10/13/11
to google-map...@googlegroups.com
erm, this may be off topic for this issue, but I currently have a premier licence for google maps.  Can I use that with the autocomplete places api so that I do not run into any quota limits?  I could not see in the documentation where it ways to place my clientID into the URL that loads the autocomplete places API library.
Reply all
Reply to author
Forward
0 new messages