Community of VE/MapPoint Users and Developers
This is a discussion on Newbie needs help calculating distance within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello all. I stumbled across this forum while looking for MapPoint help on the web. I am trying to come ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Newbie needs help calculating distance Function StraightLineDist(strPoint1, strPoint2) Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objLoc(1 To 4) As MapPoint.Location Dim dblDistance As Double Set objMap = objApp.NewMap 'Get two known locations Set objLoc(3) = objMap.Find("Seattle, WA, United States") 'Seattle, WA Set objLoc(4) = objMap.Find("Redmond, WA, United States") 'Redmond, WA Set objLoc(1) = objMap.GetLocation(47.75399, -121.97436, 100) 'Seattle, WA Set objLoc(2) = objMap.GetLocation(47.6779, -122.11032, 100) 'Redmond, WA 'Retrieve the distance StraightLineDist = objMap.Distance(objLoc(1), objLoc(2)) End Function |
| |||
|
Hi, This article http://www.mp2kmag.com/articles.asp?...xtract.lat.lon describes how to calculate coordinates from a location object. I think this is what you need.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| calculating, distance, newbie |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculating travel time between two locations | Anonymous | MapPoint 2006/2009 Discussion | 3 | 08-04-2003 02:47 PM |
| Calculating distances from a route | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-18-2003 12:23 PM |
| Calculating distance without direction-list | rbarthels | MapPoint 2006/2009 Discussion | 0 | 05-13-2003 10:57 AM |
| Calculating Distances For Dummies | Anonymous | MapPoint 2006/2009 Discussion | 0 | 12-20-2002 06:26 PM |
| Trouble calculating distances | Anonymous | MapPoint 2006/2009 Discussion | 0 | 10-03-2002 12:15 PM |