谷歌地图的地址建议 [英] Address suggestions by google maps
问题描述
有人知道是否有任何方法可以重现 http://maps.google.com/之类的 ajax 建议框 在我的网页中有使用 google maps api 的吗?
Does somebody know if there is any way to reproduce an ajax suggestion box like http://maps.google.com/ have in my webpage using the google maps api?
例如,如果有人写下15 Avenue"的建议列表:
The idea would be for example if somebody writes down "15 Avenue" a list of suggestions:
美国纽约州纽约市 15 大道"
"15 Avenue of the Americas, New York, NY, United States"
美国加利福尼亚州洛杉矶星光大道 15 号"
"15 Avenue of the Stars, Los Angeles, CA, United States"
等
只是一个是不是问题 =)
Just a yes no qustion =)
谢谢
推荐答案
是.
查看15 Avenue"的地理编码响应...
Look at the geocode response for "15 Avenue"...
http://maps.googleapis.com/maps/api/geocode/json?address=15+Avenue&sensor=false
您会得到一个可能的结果列表,您可以将其放入下拉列表中.
You get a list of possible results that you can put in a dropdown.
这篇关于谷歌地图的地址建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!