These are the 3 clues all leaving more to wish:
1. mutiny.appspot.com is the official geopt app but has gears
dependency.
2. My similar (experimental) function filters according to lat/lng as
below.
adds = Adds.all()
L=[]
range = float(self.request.get('range'))
for t in adds:
  if t.geopt:
    if t.geopt.lat < range  + float(self.request.get('lat')) and
t.geopt.lon < range  + float(self.request.get('lng')) and t.geopt.lat
> float(self.request.get('lat')) - range  and t.geopt.lon > float
(self.request.get('lng')) - range :
      L.append(thing)

3. geohash libraries might be more useful or a feature request issue
filed. It's an interesting issue.

Cheers
Niklas

On Mar 11, 12:05 pm, Dan Course <[email protected]> wrote:
> Morning Group,
>
> Hope everyone's all good? Got a dev. problem driving me nuts and I
> can't figure out or find a simple solution throughout the posts.
>
> We're saving Lat/Lng in a GeoPt datatype. We then need to search
> within all those GeoPts for the nearest within a radius/square (range)
>
> eg, search?lat=2&lng=5&range=5metres
>
> What's the easiet way of sorting this? The bounding box method seems
> overly complex and crazy, are we just hoping for a simple solution to
> quite a complex solution?
>
> WHERE GEOPT NEAR (LAT=2, LNG=2)
>
> Any clues?
>
> Thanks,
>
> DanC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to