问题描述
使用示例代码:
我发现当我输入:DePaul University
然后选择第三其中一个:美国伊利诺伊州芝加哥北肯莫尔大道的德保罗大学实际上它给我一个名为德保罗大学戏剧学院的地方,我宁愿在那里得到只有DePaul大学才是文本框中的粗体。
当我输入:Herzing University
然后选择:Herzing University Madison,Madison, WI,美国
它给我留下了很多地方......其中许多是大学附近的酒店。 (???)
使用改为
Using the example code at: https://developers.google.com/maps/documentation/javascript/examples/places-searchbox
I find that when I type: DePaul Universityand then choose the third one: DePaul University, North Kenmore Avenue, Chicago, IL, United States
it actually returns me a place named "The Theater School at DePaul University" where I would prefer getting just "DePaul University" which was what was bolded in the textbox.
Also when I type: Herzing Universityand then choose: Herzing University Madison, Madison, WI, United States
It returns me many places... many of them hotels around the university. (???)
Use the Places-Autocomplete instead
这篇关于谷歌地图API搜索返回意想不到的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!