Search 10 nearest Locations in Datastore

后端 未结 3 722
离开以前
离开以前 2021-01-19 00:03

I have a lot of Entities containing geoPoints stored in Google\'s Datastore. Now I need to get the 10 nearest locations based on a Location sent to a Google Cloud Function.<

3条回答
  •  遇见更好的自我
    2021-01-19 00:40

    please have a look at the following post

    Geospatial Query at Google App Engine Datastore

    Unfortunately it is not possible to get the nearest location from the google cloud datastore itself. You have to implement your own logic or you have to use a different database

提交回复
热议问题