# Geodesics on the Earth

Demonstrating how geodesics appear to curve on a 2D representation of 3D space

A geodesic is a line representing the shortest route between two points. In simple terms, it might help to think of this as the route a crow (or aeroplane) would fly to get from one point to another (ignoring any effects for wind).

The demo above demonstrates how confusing geodesics can appear when displayed on a standard 2D map of the world. The red line is what many people might assume would be the shortest path between the two markers. However, this is not the case and it is actually the purple line that is the geodesic. It really is true that the shortest way to get from the western America, to Madagascar is via Scotland! If your browser, supports it you can click the "Earth" tab to load a 3D globe which will make it clear that the purple line is indeed the shortest route.

The discrepancy between the red and purple lines arises because it is not possible to represent the 3D surface of the earth (spherical) on a flat 2D map without distorting its features.

Both markers can be dragged around the map which will in turn update the geodesic.