Geo API 中的部分关键字搜索
我一直在使用 SimpleGeo 对我正在构建的基于位置的应用程序进行一些位置数据查询。他们目前使用 Factual 的数据集。据我所知,无法对地点数据进行部分文本查询,可能是因为 Factual 端的限制。
我的意思是这种查询是 "Starb"
会以自动完成的方式返回星巴克的结果。
测试 Google Places API 会得到相同的结果。查询宾夕法尼亚州威廉斯波特附近的 Bullfrog Brewery 的“Bullf”,没有找到任何结果。查询 "Bullfrog"
会产生正确的结果。
是否有任何地理位置/地点 API 支持这种部分关键字查询?
I've been using SimpleGeo for doing some of my place data queries for a location-based app I'm building. They currently use Factual's data set. From what I can tell, there is no way to do partial text queries on place data, probably because of limitations on Factual's end.
The kind of query I mean is that "Starb"
would return results for Starbucks in an auto-complete.
Testing out Google Places API yields the same results. Querying "Bullf"
for Bullfrog Brewery near Williamsport, PA turns up nothing. Querying "Bullfrog"
yields the correct result.
Do any geolocation/place APIs support this kind of partial keyword query?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Google Places 确实有一个自动完成 API,它将根据部分关键字查询返回结果。
您可以在此处查看文档:
http://code.google.com/ apis/maps/documentation/places/autocomplete.html
这里还有一个关于具有自动完成功能的 Places API 的演示和博客文章:
http://googlegeodevelopers.blogspot.com/2011 /05/places-everybody-show-is-about-to-begin.html
Google Places does have an Autocomplete API that will return results based on partial keyword queries.
You can view the documentation here:
http://code.google.com/apis/maps/documentation/places/autocomplete.html
Also there's a demo and a blog post about the Places API with Autocomplete here:
http://googlegeodevelopers.blogspot.com/2011/05/places-everybody-show-is-about-to-begin.html