I was wondering if Mappoint 2002 had an API that I could use to calculate the distance between 2 zipcodes? I am trying to do this through Visual Basic and have not been able to find any references to this.
Thanks,
Ross Lotharius
This is a discussion on I was wondering if Mappoint 2002 had an API that I.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; I was wondering if Mappoint 2002 had an API that I could use to calculate the distance between 2 zipcodes? ...
I was wondering if Mappoint 2002 had an API that I could use to calculate the distance between 2 zipcodes? I am trying to do this through Visual Basic and have not been able to find any references to this.
Thanks,
Ross Lotharius
Gilles posted this simple example to the newsgroup a while back:
<pre>
Private Sub Command1_Click()
Dim loc1 As MapPoint.Location
Dim loc2 As MapPoint.Location
Set loc1 = oMap.FindAddressResults(, , , , "57642", _
geoCountryUnitedStates)(1)
Set loc2 = oMap.FindAddressResults(, , , , "88020", _
geoCountryUnitedStates)(1)
MsgBox loc1.DistanceTo(loc2)
End Sub
</pre>
There are currently 1 users browsing this thread. (0 members and 1 guests)