战略大容量位置的地理编码 [英] Strategies for large volume of location geocoding

查看:152
本文介绍了战略大容量位置的地理编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用谷歌地图API地理纬度/经度对之间code距离为您的手机(目前的Andr​​oid,工作在iPhone上)显示接近你的人的一种方式的应用程序。问题是,即使测试组40的用户,我们正在采取10秒以上,以尽我们的计算,并将结果发送回用户。虽然10秒听起来很长一段时间,它不是一个真正的问题,只要客户端应用程序,云,因为它不是人的位置(更新发生每隔几分钟)实时更新。显然,这是因为,虽然我们希望明明相爱到上升到几万甚至几十万用户的问题。我很好奇,如果任何人有关于使用谷歌地图API为计算点之间的距离,为大量数据在这个领域的经验吗?

I have an application that uses the Google Maps API to geocode distances between lat/long pairs as a way of displaying people near to you on your phone (currently Android, working on iPhone). The issue is that even with a test group of 40 users, we are taking upwards of 10 seconds to do our calculations and send the results back to the users. While 10 seconds sounds like a long time, it's not really an issue as far as the client app goes because it's not a real-time update of people's locations (the updates occur every few minutes). Obviously this is a problem though since we'd obviously love to ramp up to tens or even hundreds of thousands of users. I'm curious if anyone else has any experience in this arena in regards to using the Google Maps API for calculating distances between points for large volumes of data?

顺便说一句,我们使用Rails的服务器上,这是所有的位置计算正在发生的。这款手机(S)仅仅显示的地图和纬度/经度坐标更新服务器。

As an aside, we're using Rails on the server, which is where all of the location calculations are occurring. The phone(s) are merely displaying the maps and updating the server with lat/long coordinates.

推荐答案

快来看看 Geokit ,它是一个Ruby宝石和Rails插件做你想知道的更多,我想你会很高兴的速度和功能,以及。

Take a peek at Geokit, it is a Ruby Gem and Rails plugin to do what you want and more, I think you'll be very happy with the speed and features as well.

这篇关于战略大容量位置的地理编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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