Get distance of locations |
Hi
I have many locations(about 1000 location) I need calculate distance between this location My code is : PHP Code: function distance($lat1, $lon1, $lat2, $lon2, $unit) { I calculate distance between two location with foreach PHP Code: foreach($result as $row) { In each loop,i save previous location and get distance from their But it is wrong Does anybody can help me? |
Messages In This Thread |
Get distance of locations - by omid_student - 10-30-2018, 01:18 AM
RE: Get distance of locations - by Pertti - 10-30-2018, 01:54 AM
RE: Get distance of locations - by omid_student - 10-30-2018, 01:59 AM
RE: Get distance of locations - by Pertti - 10-30-2018, 03:16 AM
RE: Get distance of locations - by omid_student - 10-30-2018, 05:14 AM
RE: Get distance of locations - by Pertti - 10-30-2018, 05:44 AM
RE: Get distance of locations - by omid_student - 10-30-2018, 02:06 AM
|