+ 3

Sort array by closet latitude and Longitude

an array container users latitude and Longitude and now i want to sort them out by the nearest latitude and longitude of login user. i have login lat and long in session

25th May 2019, 8:26 AM
Muhammad Idrees đŸ‡”đŸ‡°
Muhammad Idrees đŸ‡”đŸ‡° - avatar
1 Answer
+ 1
Maybe this helps: https://code.sololearn.com/cHshQFmpp8FI It's Python, but it shows how to get the distance between two points based on latitude and longitude
25th May 2019, 8:38 AM
Anna
Anna - avatar