title: Shortest distance of a location from a route (Python)
body: <p>I have a location with its lat and long information</p>
  
  <pre><code>loc = (28.469723, 77.065292)
  </code></pre>
  
  <p>and a route (polyline) given by five lat long pairs</p>
  
  <pre><code>route = [(28.478324, 77.093916), (28.471647, 77.092457), (28.465498, 77.086105), (28.461273, 77.077651)]
  </code></pre>
  
  <p>Is there a simple way to calculate the shortest distance in km from <code>loc</code> to <code>route</code>? </p>