grab distances from all POIs for each node

They aren't necessarily sorted so we have to grab them all
and sort them afterword.