Research Article

Route Anomaly Detection Using a Linear Route Representation

Algorithm 2

Route Checking for Ordered Routes
Every stored route is an available route.
Find the start location of the traveler in an available
 route and set the current line segment to the first
 matched segment.
= the distance between the current location and the
 current line segment .
= the distance between the current location and the next line
 segment .
 if    the allowable error , then do nothing,
 else if and , then = and = (the next
 segment after ,
 else remove the route from the available routes. If the
 available routes are empty, report an anomaly and stop.
Repeat the above step for the next location of the
 traveler until the traveler ends the route checking.