I have an app that displays maps. I would like to add a feature where the user can tap a location and have it it display information about the nearest landmark.
By landmark, I mean I have a set of predefined objects related to the app with latitude/longitude coordinates.
The app is able to convert X/Y screen coordinates to latitude/longitude.
The app already calculates the distance between two latitude/longitude coordinates.
Therefore, I could, through brute force, run through the list of landmarks and find the closest.
However, knowing this is a problem many applications have to face, I ask if there is a better technique to find the closest "landmark" to a latitude/longitude than brute force? Some kind of transform?