Finding nearest city to a position in android using k-d trees
Instructions to use this project:
-
Create a maps activity in android studio
-
Add the code from "mapsActivity.java" and "KDTree.java" into the src folder
-
Copy cities.json into your assets folder
-
Run the app either in emulator or in your android phone.