pip install haversine # 설치 from haversine import haversine # 위경도 입력 Seoul = (37.541, 126.986) Toronto = (43.65, -79.38) # 거리 계산 haversine(Seoul, Toronto, unit = 'km') # unit = ft, in, km, m, mi, nmi
Reference 1) https://mizykk.tistory.com/21