[英]Google App Engine Geo 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 ignore the long in this case. 根据我的理解,GAE在这种情况下忽略了长期。 Is this true?
这是真的?
Short answer: Yes. 简短回答:是的。
Long answer: GeoPt
properties are sorted first by latitude, then by longitude. 答案很长:
GeoPt
属性首先按纬度排序,然后按经度排序。 This query will find entities that fall between the two latitudes, only considering the longitudes if the latitudes are identical. 该查询将查找介于两个纬度之间的实体,仅考虑纬度相同的经度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.