Firebase - order by custom function (distance)

Viewed 884

I have a list in firebase, that includes geolocation (longitude and latitude), and I want to get the 10 closest places to a given coordinate.

I am transitioning from MySQL, where in there I would calculate the distance in the SELECT, and order by it in ORDER BY.

If I can't do it from the firebase SDK, is there a way to perhaps add a custom function?

1 Answers
Related