I ask you to shed light on this situation.
Right now I have two arrays having the latitude and longitude of neighboring places, and also now the location of the latiude and longiude user now I want to calculate the distance between the user's location and neighboring places and want to show them in the list.
I know that there is a method for calculating distance as
public static void distanceBetween (double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] results);
Now the problem is how to pass these two arrays having close latitude and length in this method and get an array of distances.
android latitude-longitude location distance
john smith Nov 08 2018-11-11T00: 00Z
source share