Uber or taxi in Rio?
Both work well. The German Foreign Office recommends taxis or ride-hailing services for getting around the city and taxis rather than public transport at night. Use only official or booked taxis. Tip: pay taxis in cash and check the amount on the card machine – manipulated card terminals are a known scam in Rio. Ride-hailing apps show the price before you book.
Source: https://www.auswaertiges-amt.de/de/service/laender/brasilien-node/brasiliensicherheit-201092 ; https://www.eda.admin.ch/countries/brazil/de/home/reisehinweise/vor-ort.html