2018-01-02
2.0.0
Cristiano Lúcio
All
All
Components
[Overview]
Client Action that calculates the closest locations and returns only the number of locations that you want to show.
[Detail]
This Client Action receives a list of locations and, based on the amount of markers that are going to be shown in the map (NumberMarkers input variable), it will calculate the distance between the user's current location and all given locations. It will return a list with the closest locations (in KM).
Example: If you have a list of 20 locations and only want to show 5, this Client Action will return the 5 closest locations.