GM tells you the route, it doesn't let you pay for it all at once at the end of the trip.
Google Maps does offer "Buy Ticket" buttons for a number of agencies that have opened up their systems. They're far from universal coverage. But a new Uber for Transit would snap up the APIs Google has worked to open up and then be in the same position.