'Android Studio - how to find nearest array location of my current location

the schema is I have 3 locations and I need to find where is the nearest location depending on my current location.

how to achieve that ?

and is it possible to use FusedLocation instead of LocationManager ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source