API:
closest_node()
Find the closest node to the query position.
query (ndarray) – x and y coordinate of query e.g. array([2., 3.])
nodes (ndarray) – x and y coordinates of all nodes.
index position of closest node in all nodes list.
int