Hello,
Now I need to calculate a distance between two points.
I have the next information:
Id Longitude Latitude
1 99.80286 16.92828
2 99.8032 16.9281
3 99.80405 16.92768
I have 2,500 records and need to generate a program in Visual Fox Pro 8 to calculate the distance between point 1 and 2, point 2 and 3, point 3 and 4...
The formula is:
6378.8*arccos(sen(latitude1)*sen(latitude2)+cos(latitude1)*cos(latitude2)*cos(longitude2- longitude1))
Any suggestions?
Tahnks
Now I need to calculate a distance between two points.
I have the next information:
Id Longitude Latitude
1 99.80286 16.92828
2 99.8032 16.9281
3 99.80405 16.92768
I have 2,500 records and need to generate a program in Visual Fox Pro 8 to calculate the distance between point 1 and 2, point 2 and 3, point 3 and 4...
The formula is:
6378.8*arccos(sen(latitude1)*sen(latitude2)+cos(latitude1)*cos(latitude2)*cos(longitude2- longitude1))
Any suggestions?
Tahnks