With the fast development of information and communication technology (ICT), taxi business becomes a typical electronic commerce mode. However, one traditional problem still exists in taxi service, that greedy taxi drivers may deliberately take unnecessary detours to overcharge passengers. The detection of these fraudulent behaviors is essential to ensure high-quality taxi service. In this paper, we propose a novel framework for detecting and analyzing the detour misbehaviors both in off-line database and among on-line trips. Applying our framework to real-world taxi data, a remarkable performance (AUC > 0.98, 100% of detour trajectories can be detected at less than 10% false alarm rate) has been achieved in off-line phases, meanwhile, an excellent precision (AUC > 0.9) also has arrived in on-line detection. In additional, some constructive suggestions upon pricing regulation are also provided to control the happening of detours. Finally, some commercial value-added applications in DiDi benefited from our method have yielded good results to improve the map service.