Research Article

Location-Aware POI Recommendation for Indoor Space by Exploiting WiFi Logs

Algorithm 1

Generating indoor spatiotemporal trajectory.
Require: () User-generated WiFi logs ; () POI
     fingerprint set ,
Ensure: Indoor spatio-temporal trajectory Traj.
()   Initial user trajectory .
()    Obtain the time set that user walks through
      POIs entrance according to RSSI variation.
()     Split into a subsequence set .
()   for do
()       Initial POI set .
()       for do
()              Obtain the corresponding POI at time using nearest
                 neighbour.
()              Add to .
()       end for
()    Find the element with the most times in .
()    Obtain the timestamp
()    Construct triple and add to trajectory
               .
() end for
() return Indoor Spatio-temporal trajectory .