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

后端 未结 4 932
后悔当初
后悔当初 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:49

    I guess I'm going to some kind of digger achievement, but here it is:

    I was looking for a solution for this issue and came across this Google's oficial docs: https://cloud.google.com/appengine/docs/java/search/query_strings#Java_Queries_on_geopoint_fields

    I really think that Google should have made some more noise about this. I find it weird that they have a lesson on Python for doing the same thing but says nothing on how to do it for Java.

提交回复
热议问题