google app engine - Search 10 nearest Locations in Datastore -


i have lot of entities containing geopoints stored in google's datastore. need 10 nearest locations based on location sent google cloud function.
saw, there distance() function in google's app engine, nothing comparable in google cloud functions, not possible calculate in database.

is possible 10 nearest locations datastore using google cloud functions or need use different database ?

best regards,
pascal

we run geospatial-heavy service on appengine.

our solution store locations on memcache , doing calculations directly instead of relying on database.

this depends on amount of locations, if clever how store locations, can search quickly.

r-trees example: https://en.wikipedia.org/wiki/r-tree


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -