In this video, we are going to write a python script to get the distance between two places using python.

Installation:
To install GeoPy module, run the following command in your Command Prompt (cmd).

● pip install geopy

Approach used:
● Import the geopy module.
● Initialize Nominatim API to get location from the input string.
● Get latitude and longitude with geocode().
● Get the distance with distance() method in geopy.

Source Code & Link: https://drive.google.com/drive/folders/17YtioTex0BEvSsMCNHtodSfFK4gv8R3l

Subscribe : https://www.youtube.com/channel/UCNs6a3HlrbYw7dSUEXk9W3A

#python

How to Calculate Distance Between Two City or 2 Points (latitude, longitude) using Python | Geopy
12.80 GEEK