A Brazilian judge has issued a temporary restraining order against recently approved legislation that bans the use of smartphone-based ride-hailing-apps like Uber in Rio de Janeiro, the country's second largest city.

The Rio de Janeiro State Judiciary Department says in a statement posted on its website that the order was signed Thursday by Judge Monica Ribeiro Teixeira.

The restraining order comes 10 days after Rio Mayor Eduardo Paes signed legislation passed by the city council banning Uber and similar technologies from operating in the city of Rio de Janeiro.

The statement quotes the judge as saying Uber-like services can provide residents "better, safer and speedier transpiration services at lower prices."

Brazil's biggest city, Sao Paulo, decided against trying to ban Uber and plans to introduce new regulations for such apps.