使用Google Maps API和JQuery,我希望有一个地址字段,当键入它时,它将自动完成在此输入的地址。如何做到这一点?
最佳答案
好吧,迟到总比没有好。 Google Maps API v3现在提供地址自动补全功能。
API文档在这里:http://code.google.com/apis/maps/documentation/javascript/reference.html#Autocomplete
一个很好的例子在这里:
http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html