code: def get_point_index(self, point):
          
          for i, segment in enumerate(self.segments):
              idx = segment.getPointIndex(point)
              if idx != -1:
                  return i, idx
          return -1, -1
docs: Gets of the closest first point
  
          Args:
              point (:obj:`Point`)
          Returns:
              (int, int): Segment id and point index in that segment