China last week issued guidelines that establish a long-awaited framework for the booming ride-hailing industry and remove uncertainty for firms such as Didi and Uber.