Exporting the nearest neighbour search structure, for later use, maybe in path
optimisation.