How can I request objects that are "next to" the GeoPt property in the Google App Engine?

How to create a GQL query that returns the nearest objects (from my current location) based on their GeoPt property? Should I just create a "distance" function that computes for a set of objects with a fairly close distance?

Thanks in advance!

+6
google-app-engine geocoding gql
source share
4 answers

App Engine does not specifically refer to GeoPt properties - it does not have built-in spatial indexing. However, there are a number of third-party libraries that add support for spatial indexing. The best (in my opinion) geomodel .

+9
source share

You can save locations in the App Engine in a Quadtree structure.

Here is one description of how this will be done: Geographic queries in the Google App Engine

+4
source share

I think I will go for some achievement, but here it is:

I searched for a solution to this problem and came across these official Google docs: https://cloud.google.com/appengine/docs/java/search/query_strings#Java_Queries_on_geopoint_fields

I really think that Google should have made more noise about it. It seemed strange to me that they have a lesson in Python in order to do the same, but says nothing about how to do this for Java.

+2
source share

geohash sets very close points in different hashes, so a different or next layer is preferred. you can do a radius, a quadratic internal / external test of the form or even any mathematical form and check if the point is inside our external form.

0
source share

All Articles