We discuss the problem of finding the shortest path between two points as an infinite-dimensional convex optimisation problem.