Research Article

Comparative Analysis of Travel Patterns from Cellular Network Data and an Urban Travel Demand Model

Algorithm 1

Stop detection as used by the STOP trip extraction algorithm. A stop ends once the next position is not in distance of all positions belonging to the current stop (L).
Data: user position for every minute
Result: list of stops S
; ; / Initialize with stop /
for each do
if then / Within distance? /
  ; ; / Stop continues /
 else
  if then / Stop long enough? /
   ; /Save valid stop /
  end
  ; ; ; /Start new stop /
 end
end