Shortest Linear Distance vs Geodesic Distance:


The shortest distance between two points is always a straight line in Euclidean geometry". 
This is what we have learned in our school geometry classes.  We have learned in school, where the figures are two-dimensional and represented on a flat surface like a notebook sheet.


 
Image Source: https://theconversation.com/sublime-design-the-geodesic-dome-30196


In real life, the shortest distance is a curve called a geodesic. That's because our planet is not flat! Thus, Euclidean geometry is not used, but Riemannian geometry.
Geodesics are the curves on the surface that make turns but remain on the surface and never move sideways. A bug living within the surface and following such a curve would perceive it to be straight.
A geodesic may be a generalization of the notion of a “straight line” from a plane to a surface, on which it represents the shortest path between two points in some sense.
This is the concept that flight planners use to chart airplane routes to save time and fuel. Practically, in most cases, a geodesic is the shortest curve that joins two points.


This effect has interesting implications; for example, when you fly on an airplane, the path it takes to go from one destination to another does not follow a "straight line", as many people imagine. It follows the “curvature” of the Earth, making small adjustments in travel direction to cover the shortest possible stretch. If the plane were simply "in a straight line", it would end up traveling a longer trajectory than it does when following the land curvature.


Look at the image below, it shows a planar distance in orange and the geodesic distance of that planar distance in blue. The maximum deviation of the geodesic from the planar line is near 2,000 Km and the difference in length is 644 Km.


What this image represents is the actual path taken (geodesic line) if I travel in a straight line, relative to me with no turns, from London to Singapore along the International 1924 ellipsoid