Path: blob/master/Geopy/Geopy_Calculate_distance_between_two_locations_in_km.ipynb
2973 views
Kernel: Python 3
Geopy - Calculate distance between two locations in kilometers
Tags: #geopy #distance #navigation #snippet
Author: Antonio Georgiev
Last update: 2023-07-28 (Created: 2023-07-28)
Description: This notebook demonstrates how to calculate distance between two locations in kilometers using geopy
.
Input
Import libraries
In [ ]:
Setup variables
Mandatory
address1
: Address to be used to get coordinatesaddress2
: Address to be used to get coordinates
In [ ]:
Model
Get locations
In [ ]:
Output
Calculate distance
In [ ]: