View Single Post

  #7 (permalink)  
Old 07-07-2005
Goldwings98SE Goldwings98SE is offline
Junior Member
White Belt
 
Join Date: Jun 2005
Posts: 4
Re: Routing should give you the direction

Quote:
Originally Posted by Goldwings98SE
I think if you tell MapPoint to route from 1 location to another it will also give you the direction you need to go:

oRoute.Waypoints.Add oMap.FindPushpin(RoutePoint(g - 1))
oRoute.Waypoints.Add oMap.FindPushpin(RoutePoint(g))
oRoute.Calculate


From that you should be able to pick up if your going North VS South or East VS West, etc.

Hope it helps.

I probably should have described it better.
I put my plotted pins on the map in an array. Then I just calculate the driving directions with the oRoute.Calculate method. Then the results from the oRoute.Calculate is easily put to a flex grid. It should provide the info you need to get the direction of travel.
Reply With Quote