I believe LHR and LGW count as same city for fares that restrictions on the number if transits/stopovers in single city. But for the new segment limits rules on OneWorld Explorer, I do believe LHR-LGW would constitute a surface sector and hence count as one segment.