France's highest court has rejected ride-sharing company Uber's bid to have much of a recent law banning its services declared unconstitutional.

Uber had sought to overturn multiple restrictions placed on it and similar services by a law enacted last year after a series of large and sometimes violent protests by taxi companies seeking to ban the upstart challenger.

The Conseil Constitutionnel on Friday upheld most limits placed on Uber-style services, including a on the popular ride-hailing app that informs users of the location and availability of nearby rides.

Uber wasn't completely shut out, though: the court ruled that a part of the law reserving to taxis the possibility of charging by a trip's time and distance was unconstitutional.