Geopy
Geocoding library for Python.
두 지점간의 거리
from geopy import distance
newport_ri = (41.49008, -71.312796)
cleveland_oh = (41.499498, -81.695391)
print(distance.distance(newport_ri, cleveland_oh).miles)
- 더 정확한 계산 방법: Calculate distance, bearing and more between Latitude/Longitude points
- Pyproj을 사용한 방법은 해당 항목 참조.