Luckily in todays digital world computers can do the math for us. So 180 x 11019800 km. Write a Python program to calculate distance between two points using latitude and longitude.
If we want to calculate the distance between two places in kilometers use the value 6 3788 which is the radius of Earth.
6371 is Earth radius in km. DistVincenty Pt1_LatAsDecimal Pt1_LongAsDecimal Pt2_LatAsDecimal Pt2_LongAsDecimal. Find the value of the latitude in radians. Latitudes and longitudes may be entered in any of three different formats decimal degrees DDDD degrees and decimal minutes DDMMMM or degrees minutes and decimal seconds DDMMSSSS.