Hey guys an auto-complete for the address would be so fantastic (and it would serve purpose of allowing only correct addresses to be entered):
http://stackoverflow.com/questions/1555253/how-to-make-an-autocomplete-a...

I'm a php dev myself (no drupal-contributed work yet) but would possibly consider contributing this as I will need to implement it anyway for my site.

Regards,
gvanto

Comments

cesareaugusto’s picture

great idea! i'm not a php dev, though perhaps we could reuse code from Geocoder Autocomplete module.

jlyon’s picture

I'm going to be working on similar functionality (possibly using http://code.google.com/p/geo-autocomplete/, or some of the code from the Geocoder Autocomplete module above) in the next couple days.

gvanto’s picture

OK jlyon,

My requirement has actually been delayed for a while so I will wait for your version :-)

Good luck!

gvanto

sokrplare’s picture

Any progress on this? Would be happy to finish up what you've got even if it's only partially completed.

jlyon’s picture

@covenantd: I got a fair amount of work done on this, but I don't think it's totally working. I just pushed my code to a sandbox project: http://drupal.org/sandbox/jlyon/1702018.

One issue is that it is kind of hard to populate more than one field with data using the #autocomplete FAPI attribute. I did this one a previous project with some hack-y Javascript, which I would be happy to share if it would be helpful.

sokrplare’s picture

@jlyon - thanks for sharing. I ended up rolling my own to auto-populate the zip code once street, city and state were in place - wrapped up that project last week so I don't think I'm going to get hours to put back into this, but hopefully more projects in the future will need it!

chapsou’s picture

any news ?

loren H’s picture

This would be wonderful but I see the difficulty with the multiple fields. Keep us updated.

rszrama’s picture

Priority: Major » Normal
Status: Active » Closed (won't fix)

As the thread here indicates, this is a particularly challenging task given the way autocomplete typically works in Drupal and just the nature of the idea in general. I don't see us adding autocompletion to this module directly, certainly not in so far as it depends on integration with a third party API. The best place for that to happen would be either in a module that already integrates the API (perhaps one linked above?) or in a contributed module that specifically integrates the API with Address Field as was started in the sandbox above.

adammitchell’s picture

I have created a working sandbox version of address autocomplete. https://drupal.org/sandbox/adammitchell/2126989. I will endeavour to get it created into a full blown project. However if you could help me and test it that would be greatly appreciated.