I have stored latitude and longitude values in my object in Objectify (Google App Engine), but I don't know how to find a nearest location in Objectify.
I found a sample here but I'm also looking for tips.
I have stored latitude and longitude values in my object in Objectify (Google App Engine), but I don't know how to find a nearest location in Objectify.
I found a sample here but I'm also looking for tips.
you are talking about Geospatial Queries which are yet not supported by the Google Cloud Datastore. This feature is still in alpha stadium. Please see the following post for this topic
Geospatial Query at Google App Engine Datastore
So you need to implement your logic. A possible solution would be to use Geohashes e.g.