I've created an opensource that provides in-memory Geo-spatial Indexing, with 2-dimensional K-D Tree. I've worked on multiple projects where I used K-D Trees to find the nearest neighbors for provided geo coordinates with very efficient results. Hence a generic implementation for all. Open to suggestions and contributions.
If you like the project, **stars **on the git repository are most appreciated 🙂