Geo API 中的部分关键字搜索

发布于 2024-12-20 11:19:00 字数 335 浏览 3 评论 0原文

我一直在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

西瑶 2024-12-27 11:19:00

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文