I need to determine how to calculate the distance in Miles from two points BUT I do not want to display the Route or place it on the map just get the distance. Currently I get the distance and can display it but the route shows on the map.
'Add route stops and calculate the route
Set objRoute = objMap.ActiveRoute
objRoute.Waypoints.Add CMD
objRoute.Waypoints.Add objLocCrimes(MaxDistanceIndex)
objRoute.Calculate
MsgBox CStr(objRoute.Distance)
Is this possible to get the distance without displaying route in Mappoint Control? (BTW I need the route distance not the direct distance so I don't believe I can use the distance function)
![]()