Calculate all locations distance |
Hi
I have project named GPS Tracker The one hundred device is active in my project Each device send 24000 location to my server In continue,i need calculate distance this locations for each device and save it But number of records is high and if i use FOR statement for iterate array and calculate distance,the CPU maybe down I try calculate distance between location when device send to server but locations is irregular and i cannot calculate exact distance So i have to calculate distance after receive locations and insert into database and sort it and calculate distance My code is : PHP Code: $this->db->order_by('time','ASC'); Please suggest solution for me Thanks |
Welcome Guest, Not a member yet? Register Sign In |