I'm trying to create a Javascript function that can find the closest coordinate match in an array of coordinates.
My coordinates: 33.9321, 18.8602 These coordinates will vary, but the 4 locations listed below will stay the same.
Location1: 33.9143, 18.5701 Location2: 26.2041, 28.0473 Location3: 25.7479, 28.2293 Location4: 29.8587, 31.0218