$H$-distance space