Google App Engine Geohashing [英] Google App Engine Geohashing

查看:145
本文介绍了Google App Engine Geohashing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GWT和App Engine编写Web应用程序。我的应用程序将需要根据其纬度,经度来发布和查询项目。



由于谷歌的分布式数据库设计,您不能简单地查询一组不等式。相反,他们建议做geohashing。该页面描述了该方法。



http:// code。 google.com/appengine/articles/geosearch.html



本质上,您可以预先计算边界框,以便您可以查询已标记有边界的项目框。



我不明白的过程的一部分。谢谢你的帮助!

解决方案

对于Geomodel的完整java portage,请参阅 http://code.google.com/ p / javageomodel /



有一个演示类来解释你如何使用它。


I am writing a web application using GWT and App Engine. My application will need to post and query items based on their latitude, longitude.

As a result of google's distributed database design you can't simple query a set of inequalities. Instead they suggest doing geohashing. The method is described on this page.

http://code.google.com/appengine/articles/geosearch.html

Essentially you pre compute a bounding box so that you can query items that have been tagged with that bounding box.

There is one part of the process that I don't understand. What does the "slice" attribute mean?

Thanks for your help!

解决方案

For a complete java portage of Geomodel, please see http://code.google.com/p/javageomodel/.

There is a demo class to explain you how to use it.

这篇关于Google App Engine Geohashing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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