QGIS is very useful in representing spatial relationships between objects. This analysis are closest to a given feature. QGIS has a tool called Distance Matrix which helps with such analysis. In this tutorial, we will take 2 datasets and get which points from one layer are closest to which point from the second layer.