giovannibrumana
giovannibrumana

Reputation: 3

How to sort a List<Position> to be from closest to furthest? Xamarin Forms

I'm looking for a plugin to sort a list of Positions (every position includes latitude and longitude) from the closest to my current position to the furthest, but I couldn't find anything that may be helpful yet.

Upvotes: 0

Views: 131

Answers (1)

Joagwa
Joagwa

Reputation: 309

If you want to do properly, see the equations on this page http://www.movable-type.co.uk/scripts/latlong.html Then do as SushiHangover says on the result

Upvotes: 1

Related Questions