The distance between two geographic locations
It often happens that you have in your dataset coordinates expressed in longitude and latitude that identify points on the globe. Depending on the purpose of the analysis you need to complete, you can leverage these coordinates to calculate measures that best help to describe the scenario you want to deal with. For example, assuming you have the geographic coordinates of some hotels in a dataset, it might make sense to calculate the distance of each of them to the nearest airport if you want to give an additional value of interest to a visitor. Let's start by figuring out what types of distances to consider for our case.
Spherical trigonometry
The study of how to measure triangles (trigonometry) has been of great interest in the past. The ancient Egyptians and Babylonians had already addressed the issues between the relationships between sides, although they did not yet have the notion of an angle. It is thanks to Hellenistic...