I have a set of segments defined by two points. Given a point how can I discover the closest segment to such point?
I have already written an algorithm that computes the distance between a point and a segment. Anyway calculating such distance for each segment and then choose the segment with the lowest distance is not really efficient :(
Since the segments represent streets this is actually a Reverse GeoCoding problem so I hope there are well-known solutions to this problem...
THANKS A LOT!