I know my area fairly well enough to be able to roughly figure out what the fair should be and can tell if a taxi driver is fucking around trying to take a longer route. I tend to plan my fairs with a decent tip in mind. If there's any unnecessary deviations from the ideal route, I just subtract the time from whatever tip I was going to leave. It's only happened once or twice and every time it's worked out i've given around the same amount of money I was going to anyway, they just receive no tip out of it. I imagine this strategy would fail in a different city.
Honestly though, 99% of taxis i've ever taken where there's more than one route, the driver usually asks which route i'd like to take. I've never used lyft or uber or any of those so I can't really comment on them.