|
Algorithm 1 Pre-processing of a GPS trajectory in two stages |
-
1:
INPUT 1) rawTlist(), 2)lowSpeed: LST
-
2:
OUPUT
-
3:
PROCEDURE Spatial_Filter()
-
4:
-
5:
for i=0 to −1 do
-
6:
if
then
-
7:
# rawTlist.get(i)=, where is a GPS point in raw trajectory
-
8:
end
if
-
9:
end
for
-
10:
END PROCEDURE
-
11:
PROCEDURE Velocity_Filter()
-
12:
-
13:
for i=1 to −1 do
-
14:
if
then
-
15:
vfTlist.add()
-
16:
else
-
17:
if
then
-
18:
if
then
-
19:
vfTlist.add()
-
20:
end
if
-
21:
end
if
-
22:
end
if
-
23:
end
for
-
24:
END PROCEDURE
|