Dear all,
I have 2 sets of data - the first is 55,000 pairs of latitude and longitude corresponding to each house, and the second dataset of 300 pairs of latitude and longitude for each school.
I wish to use the geodist function to find the distance between each house (55,000) and each school (300). In other words, I should get 55,000*300 distances.
My purpose of doing this is so that I can find out for each house (55,000), how many schools (300) fall within certain range of distances.
Each dataset looks like this
HouseID Latitude Longitude
SchoolID Latitude Longitude
Would appreciate ideas on how this can be done efficiently.
Thanks.
I have 2 sets of data - the first is 55,000 pairs of latitude and longitude corresponding to each house, and the second dataset of 300 pairs of latitude and longitude for each school.
I wish to use the geodist function to find the distance between each house (55,000) and each school (300). In other words, I should get 55,000*300 distances.
My purpose of doing this is so that I can find out for each house (55,000), how many schools (300) fall within certain range of distances.
Each dataset looks like this
HouseID Latitude Longitude
SchoolID Latitude Longitude
Would appreciate ideas on how this can be done efficiently.
Thanks.
Comment