可扩展的国际地理编码解决方案
我们希望网站支持国际地理编码。我们对使用限制和/或限制请求的 API 持谨慎态度,这可能会让我们在服务量增加时感到沮丧。 Facebook 等现代网站如何实施地理编码?是否有工具可以为全世界实施准确的内部可扩展地理编码解决方案?
We want out website to support international geocoding. We are wary of using APIs that throttle and/or cap requests, which could leave us with our pants down as the service gains volume. How do modern websites such as Facebook implement geocoding? Are there tools to implement accurate in-house scalable geocoding solutions for the entire world?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道国际地理测量的 API。但是,也许 Cassandra http://cassandra.apache.org/ 可以为您添加一些有价值的东西。尽管它是一个以存储为中心的解决方案,但它肯定可以扩展。
Twitter 使用它来存储地理位置和名胜古迹数据 http:// /engineering.twitter.com/2010/07/cassandra-at-twitter-today.html 以及 https:// /simplegeo.com/
I don't know about APIs for international geoconding. However, maybe Cassandra http://cassandra.apache.org/ can add something of value for you. Although it is a storage-centric solution, it surely can scale.
Twitter is using it for storing geolocation and places of interest data http://engineering.twitter.com/2010/07/cassandra-at-twitter-today.html as well as https://simplegeo.com/
我知道这是一个较老的问题。您始终可以使用服务,然后将相关结果缓存在本地数据库中...只需先查看本地,然后再返回到服务即可。一段时间后,您的大多数请求将针对您的本地数据库进行命中,很少有回退。
对于一个位于美国的项目,我们从美国邮政编码数据库开始,并使用 Bing 作为后备,从未达到 5,000/天 (iirc) 限制。 YMMV 对此解决方案,但这并不是一个不合理的解决方案。
I know that this is an older question. You could always use a service, then cache the relevant result in a local database... simply look local first before falling back to the service. After a while, most of your requests will be hits against your local database, with very few fallbacks.
For a U.S. based project, we started with a seeded U.S. zipcode database, and using Bing as a fallback, never once hit the 5,000/day (iirc) limit. YMMV with this solution, but it isn't an unreasonable one.