Calculate distance between 2 geopoints

Calculating distance between GPS coordinates is something you’ll ALWAYS have to do on any geolocation-enabled application. The most common use-case is to calculate the distance between the user’s current location and any other reference. The TypeScript function ‘calculateDistance’ returns the distance in kilometers: const calculateDistance...