Geopy
lastmod 2019-11-28created 2019-11-286 edits
Geocoding library for Python.
Distance between two points
from geopy import distance
newport_ri = (41.49008, -71.312796)
cleveland_oh = (41.499498, -81.695391)
print(distance.distance(newport_ri, cleveland_oh).miles)
- More accurate calculation methods: Calculate distance, bearing and more between Latitude/Longitude points
- For the method using Pyproj, see that page.