adds utility method for midpoint calculation for geofencing