管理地点的最佳方式?

发布于 2024-11-07 23:31:50 字数 463 浏览 3 评论 0原文

我即将在网站上实现地理搜索。我真的不想在数据库中输入任何位置信息,因为根据我的经验,这样做总是浪费时间,而且没有人对结果特别满意。

我一直在研究 Google Fusion 表和使用 KML 的解决方案,如下所示: http://code.google.com/apis/maps/documentation/javascript/overlays.html#KMLLayers

有没有人在谷歌地图搜索API旁边尝试过这个(为了获取位置而不是存储我自己)并将搜索结果纬度/经度放入 Google Fusion 中?

我还听说 SQL 2008 在这方面也有很好的功能。我试图找到最具创新性的方法,但似乎有很多解决方案,找到最好的方法并不容易!

I am about to implement a geo search on a website. I really don't want to enter any location information into my database as my experience of doing so is always that it is a time drain and no-one is every particularly happy with the results.

I have been investigating Google Fusion tables and the solutions using KML such as here: http://code.google.com/apis/maps/documentation/javascript/overlays.html#KMLLayers

Has anyone tried this along side the google maps search api (to get hold of locations rather than storing myself) and putting the search results latitude/longitude into Google Fusion?

I have also heard SQL 2008 has good functionality in this area too. I am trying to find the most innovative way but it seems there are many solutions and finding the best is not easy!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

垂暮老矣 2024-11-14 23:31:51

如果将融合表标记为可导出且未列出,则只需使用 Javascript 即可完成许多任务。如果身份验证是强制性的,您需要一些服务器端的工作,但例如Python 库非常出色。除此之外,我发现融合令人难以置信的快速和可靠。请记住,它是测试版,因此团队将来可能会更改 API 的任何方面。而且每秒 5 个请求的上限仍然存在,因此缓存可能会成为一个问题。

为了告诉你更多信息,你能具体说明为什么要存储谷歌搜索结果吗?

If you mark the fusion table as exportable and unlisted, you can do many tasks with Javascript only. In case authentication is mandatory, you need some server side effort, but e.g. the Python libs are excellent. Beside this I've found fusion incredible fast and reliable. Keep in mind it is Beta, so the team may change any aspect of the API in future. And there is still an upper limit of 5 requests per second, so caching might become an issue, though.

To tell you more, could you specify why you want to store google search results?

你穿错了嫁妆 2024-11-14 23:31:51

我基本上采用了在自动完成上使用 Google API,然后获取纬度和经度并使用 Linq 与存储的数据进行比较的方法。

它尚未完成,但早期迹象表明它会很快。一个缺点是 Google API 返回许多相当奇怪的结果,而不仅仅是一个城镇名称。不过,我们正在努力优化这一点。总的来说,Google Geocode API 确实非常有用。

I have basically taken the approach of using the Google API on an auto complete and then taking the latitude and longitude and comparing to the stored data using Linq.

It is not finished but early indications suggest it will be fast. The one downside is that the Google API returns lots of rather odd results rather than just a town name. We are working to optimise this though. In general the Google Geocode API is very useful indeed.

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