code: def point_line_distance(point, start, end):
      
      if start == end:
          return distance(point, start)
      else:
          un_dist = abs(
              (end.lat-start.lat)*(start.lon-point.lon) - (start.lat-point.lat)*(end.lon-start.lon)
          )
          n_dist = sqrt(
              (end.lat-start.lat)**2 + (end.lon-start.lon)**2
          )
          if n_dist == 0:
              return 0
          else:
              return un_dist / n_dist
docs: Distance from a point to a line, formed by two points
  
      Args:
          point (:obj:`Point`)
          start (:obj:`Point`): line point
          end (:obj:`Point`): line point
      Returns:
          float: distance to line, in degrees