Creating the data first. Note that the taxicab distance will always be greater or equal to the straight line distance. The taxicab distance between two points is measured along the axes at right angles.
It is really easy to interpret the distance.
Print Euclidean distance from x to y. From scipy import spatial. Next we compute the Euclidean Distance using a suitable formula. Longitude and latitude with following libraries.