PDA

View Full Version : A combo box that suggest addresses from google api.



size100
25 Jun 2011, 1:38 PM
i am trying ro do something like that:
http://dev.sencha.com/deploy/ext-3.3.1/examples/form/forum-search.html
but i want to return addresses from google maps api...

any idea??

1. json not working cause google's api does not return a callback..
2. can the " geocoder.geocode( { 'address': address}, function(results, status)" be used instead.... somehow?

thanks

msarath
2 Feb 2012, 7:54 AM
Hi,

I am looking for similar solution, I found similar example using plain js:
http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html
(http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html)
But looks like we can't implement this using sencha as the input field & suggestion list is controlled by google api. As I need to control the input field width & wrap the suggestions to multi lines if input field is not enough to show in one line. Currently the text gets truncated after 45 chars in the above url.

Please let me know if you were able to implement.

Many thanks in advance.
Regards,
Sarath.