lair.transects.snap_to_route# lair.transects.snap_to_route(xy, route_xy, max_dist)[source]# Nearest route point of each sample: (index, distance), index -1 beyond max_dist. Both arrays are (n, 2) in the same projected metres. Parameters: xy (ndarray) route_xy (ndarray) max_dist (float) Return type: tuple[ndarray, ndarray]