Hello
I'm very new in mappoint .I use the european's version of mappoint and I want to calculate the distance between two vehicules.
I found this ont that adress
http://msdn.microsoft.com/library/de...ublemethod.asp
my problem is his doesn't recognise those extensions:Code:Distance Method Returns the distance between the start point and end point in the current units. Syntax object.Distance (StartLocation, EndLocation) Parameters StartLocation (Location object) Start point of a route. EndLocation (Location object) End point of a route. Result (Double) Returns the distance between the start point and end point. Example Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objLoc(1 To 2) As MapPoint.Location Dim dblDistance As Double Set objMap = objApp.NewMap 'Get two known locations 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 MsgBox objMap.Distance(objLoc(1), objLoc(2))
- As New MapPoint.Application
- As MapPoint.Map
- As MapPoint.Location
does exist an equivalence with Mappoint europe 2002
have a nice day[/url]