Always ask for a quote. That means every ride, not every visit to that city. And confirm what methods of payment they can take before you get in. If they're evasive or you get a bad vibe, don't get in.
If you decide to change your destination, make sure you get an updated quote first, for your sake and the driver's.