With this function, you can create a list of geolocated places. It will show all the places on a map or if the user opens the sheet of a particular location, they can get the route and directions to reach that location, walking or driving.
The list of locations is sorted by the distance between the locations and the user, from closest to farthest.

For the correct functioning of this function it is necessary to add the
Google Maps API. You can see how to get this API by doing
CLICK HERE
Next, you must enter an address for this location and/or its coordinates (Google autocomplete should help)