I am a new user of QGIS (version 3.2.3) and I find myself in need to do some calculations. I am trying to find the average distance between two sets of points (i.e. schools and settlements) contained in two different layers within given districts, which comes in polygons.
My ultimate goal is to calculate the average distance traveled to school for each district. I tried to calculate the distance matrix but it didn't yield the results I wanted.
How can I complete this task?