The distance between two geographic locations
It is often the case that you have coordinates in your dataset, expressed in latitude and longitude, that identify points on the globe. Depending on the purpose of the analysis you want to perform, you can use these coordinates to calculate measures that best describe the scenario you want to address. For example, assuming you have the geographic coordinates of some hotels in a dataset, it might be useful to calculate the distance of each hotel to the nearest airport if you want to provide an additional value of interest to a visitor.
Some theory first
To fully understand a phenomenon well, to know what it consists of and what technologies have been developed to deal with it, it is necessary to go deeper into the theory behind it. Since we are talking about measuring the distance between two points on the globe, the first thing that comes to mind is to simplify the phenomenon by using a model that approximates reality. So let&...