Finding the closest point in a map (points and highways)

Related discussion here: Waterways path possible? and fixed this bug here: