Description
This custom function is designed to sort a List of Documents (like places) by distance and allowing to filter the results by a maximum distance from a Single Point (like a users Position). The function requires a position (LatLng), a distance (double) and a List of documents (e.g. in the preconfigured case documents from a collection called “places”).