spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

Top | Post New Question | Read All | MP2K Asks Microsoft

681 Ross Lotharius - May 22, 2002

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

Answer:
May 22, 2002
Gilles posted this simple example to the newsgroup a while back:

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

Post New Answer / Follow-up


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.