It's my first time working with GIS. I really wish I could share some code, but I don't even know how and where to begin. I have a Pandas dataframe with around 10,000 records. Each of them have a latitude and longitude. Assume that after applying some filters, I end up with 10 records relevant to me.
Now, I want to find all the records which have coordinates lying within 20 miles (radius...?) of ANY of these 10 records.
The dumbest brute force solution I thought of was using geopy and looping over the records and finding the distance. Then I came across this solution to use kdtree - https://stackoverflow.com/a/41155458. But the comment below it says that it isn't accurate.
And I also tried to look at geopandas, and use the
unary_union functions - http://geopandas.org/geometric_manipulations.html. The only thing I have with me right now is the dataframe with the latitudes and longitudes.
How should I proceed?