Write a script to find the distance between two cities

A script using to calculate distance between two cities using the geopy library.

Instructions to execute the script

  • Have python (python3) and python-pip installed in the machine
  • Install the required packages using the following command pip install -r requirements.txt
  • Execute the script python main.py

Sample Output

Enter the coordinates of the first city seperated by a comma: 41.49008,-71.312796
Enter the coordinates of the second city seperated by a comma: 41.499498,-81.695391
Distance: 864.21 km

Built With

Share this project:

Updates