[google-appengine] Re: best way to query geographical regions?

2009-05-03 Thread Matt Murphy
I ended up writing something based on how mutiny works and it seems to work quite nicely... haven't tried with lots of data yet though. On Sun, May 3, 2009 at 9:06 AM, adelevie wrote: > > Will this box always have 4 points? Will it be a square with right > angles? if it's going to be that simpl

[google-appengine] Re: best way to query geographical regions?

2009-05-03 Thread adelevie
Will this box always have 4 points? Will it be a square with right angles? if it's going to be that simple, just write the function yourself. On May 2, 1:28 pm, Barry Hunter wrote: > Because of the way a geohash is created, chopping off charactors off > the end reduces the percision of the 'po

[google-appengine] Re: best way to query geographical regions?

2009-05-02 Thread Barry Hunter
Because of the way a geohash is created, chopping off charactors off the end reduces the percision of the 'point' So a given geohash actually represents a box. The more charctors the smaller the box. And because you can do prefix searches on AppEngine, you can just store the location as a Geohas

[google-appengine] Re: best way to query geographical regions?

2009-05-02 Thread Andrew Badera
How does geohash help one query a bounded box? Geohash is a single point. Thanks- - Andy Badera - and...@badera.us - Google me: http://www.google.com/search?q=andrew+badera On Sat, May 2, 2009 at 1:13 PM, Jim wrote: > > Have you looked at the geohash approach? > > http://geohash.org/site/tips

[google-appengine] Re: best way to query geographical regions?

2009-05-02 Thread Jim
Have you looked at the geohash approach? http://geohash.org/site/tips.html http://pypi.python.org/pypi/Geohash/1.0rc1 On May 1, 7:40 pm, Matt wrote: > Hello, > > I'm building a simple mapping app that needs to be able to query for > all points inside a box of points. > > I noticed the mutiny

[google-appengine] Re: best way to query geographical regions?

2009-05-02 Thread Barry Hunter
As far as I know there are no simple methods. Maybe AppEngine will include geospatial index type using GeoPtProperty automaticaly in the future, but alas it doesnt yet. (There is a feature request in the tracker you should star) The one in mutiny is pretty good and should work for many uses, and