Research Article

A Framework for Spatial Interaction Analysis Based on Large-Scale Mobile Phone Data

Algorithm 2

Transformation of geographic coordinates.
(1)  Input                    Mobile subscriber:
(2)                                    Set of logs in chronological sort:
(3)                                               
(4)                                    The approximate size of cells:  m
(5)                                    The boundaries of Shanghai administrative jurisdiction:
(6)                                               ,  
(7)  Output                The transformed mobile phone data of mobile subscriber :
(8)                                               
(9)  Procedure        Raster
(10)
(11) /* Determine the fix interval of longitudes and latitudes, where is the average
(12) radius of the earth. */
(13) ,
(14) /* Transform each BTS into the equivalent BTS located at the cell’s centroid. */
(15)
(16) while do
(17)          
(18)          
(19)          
(20)