= :1 AND location <= :2", db.GeoPt(lat=minLat, lon=minLo...">

Google App Engine geological query

query = db.GqlQuery("SELECT * FROM Place WHERE location >= :1 AND location <= :2", db.GeoPt(lat=minLat, lon=minLon), db.GeoPt(lat=maxLat, lon=maxLon) ) 

From what I understand, GAE ignores the long one in this case. It's true?

+4
source share
1 answer

Short answer: Yes.

Long answer: GeoPt properties are sorted first by latitude, then by longitude. This query will find objects that fall between two latitudes, only given longitudes if the latitudes are identical.

+1
source

All Articles