I am using Mappoint 2004 control in VB. I have the following code but it appears that I am getting what I believe to be an incorrect response. In this example I am displaying the distance from Charleston, SC to Columbia, SC as the crow flys.
Dim TestLocation As Location
Dim TestLocation2 As Location
Dim objMap As MapPointCtl.Map
Set TestLocation = objMap.GetLocation(-80.03, 32.9)
Set TestLocation2 = objMap.GetLocation(-81.12, 33.95)
MsgBox "Distance between Charleston and Columbia is " & objMap.Distance(TestLocation2, TestLocation)
This returns approx 76.32488.......But the distance from Charleston, SC to Columbia, SC is nearer to 100 Miles.
Is there something I am missing here? Any help will be greatly appreciated.