Currently have a working example using scipy.spatial.KDTree
to do a nearest neighbour look up for some x,y points.
Question is, if I have datetime data for each x,y point can I put that into a KDTree and modify my spatial nearest neighbour search to do a nearest spatio-temporal neighbour search?
Searching for nearest spatial neighbours with:
pts = np.array([[1, 50], [1.89, 52.4]])
print tree.query(pts, k=5)