How do I query for entities that are “nearby” with the GeoPt property in Google App Engine?

后端 未结 4 923
后悔当初
后悔当初 2020-12-31 21:11

How should I create a GQL query that returns the nearest entities (from my current location) based on their GeoPt property? Should I just created a \'distance\' function th

4条回答
  •  执念已碎
    2020-12-31 21:31

    geohash set very close points in different hashes so another or next layer should be preferred. you can make a radius, quadratic inside/outside shape test or even any mathematical shape and test whether the point is within our outside the shape.

提交回复
热议问题