通过谷歌地图地址建议 [英] Address suggestions by google maps

查看:175
本文介绍了通过谷歌地图地址建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知不知道是否有任何的方式重现如 http://maps.google.com/一个ajax意见箱在使用谷歌地图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大道的建议清单:

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大道明星,洛杉矶,CA,美国

"15 Avenue of the Stars, Los Angeles, CA, United States"

只是一个是否qustion =)

Just a yes no qustion =)

感谢

推荐答案

看一下15大道...

Look at the geocode response for "15 Avenue"...

http://maps.googleapis.com/maps/api/geo$c$c/json?address=15+Avenue&sensor=false

您得到的可能结果列表,你可以把一个下拉列表。

You get a list of possible results that you can put in a dropdown.

这篇关于通过谷歌地图地址建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆