MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Extracting the route sequence

This is a discussion on Extracting the route sequence within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have created a route of 20 stops - each stop is a customer with its account number. How can ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2003
Junior Member
White Belt
 
Join Date: Mar 2003
Posts: 5
Extracting the route sequence

I have created a route of 20 stops - each stop is a customer with its account number. How can I extract the route sequence that MapPoint creates (which customer is what stop number)?

Thanks. Ivan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-11-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Use the Waypoints collection. The help file has a pretty good example that should get you started.
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-11-2003
Junior Member
White Belt
 
Join Date: Mar 2003
Posts: 7
The following code snippet show how you can iterate through the directions list.

Private Sub OKButton_Click()

Dim g_oApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objRoute As MapPoint.Route

'Set up the application
Set objMap = g_oApp.ActiveMap
Set objRoute = objMap.ActiveRoute
'objApp.Visible = True
'objApp.UserControl = True


'Add route stops
With objRoute.Waypoints
.Add objMap.FindResults("Tacoma, WA").Item(1)
.Add objMap.FindAddressResults("16955 SE 38th Street", "Vancouver", "WA").Item(1)
End With

' Iterate through the Direction List
Dim inx As Integer
For inx = 1 To objRoute.Directions.Count
MsgBox (objRoute.Directions.Item(inx).Instruction)
Next inx

objMap.Location.Highlight = True
g_oApp.ItineraryVisible = False
g_oApp.PaneState = geoPaneNone


End Sub
__________________
Sitting still and wishing makes no person great..
The good lord and sent you fishing but you should dig the bait!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
extracting, route, sequence


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Letting MapPoint choose the waypoint sequence BobFromBoston MapPoint 2006/2009 Discussion 2 10-21-2005 08:43 PM
Extracting street names from route Instruction Curt MapPoint 2006/2009 Discussion 1 08-18-2005 02:56 PM
Export to Excel - Sort Sequence Anonymous MapPoint 2006/2009 Discussion 0 01-08-2004 07:02 AM
sequence of imported data changes Harv MapPoint 2006/2009 Discussion 1 05-27-2003 05:09 PM
I have been using MapPoint to sequence route stops.... Anonymous MapPoint 2006/2009 Discussion 1 02-04-2002 11:31 AM


All times are GMT -5. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55