Yes distance to the cabinet matters. BT will not install the Infinity product if you can't get at least 15Mbps but other ISPs may possibly resell the underlying product with worse performance. All ISPs give a speed estimate when you order these days.
Infinity uses VDSL -
http://en.wikipedia.org/wiki/VDSL