MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




I have a comma separated list of multiple routes. ....

This is a discussion on I have a comma separated list of multiple routes. .... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a comma separated list of multiple routes. Each line in the list is a point. Each route has ...


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

Today's Posts Twitter Feed 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 05-24-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I have a comma separated list of multiple routes. Each line in the list is a point. Each route has a starting location and ending location, and some routes have one or more waypoints, with a sequence specified in the list. The points are already pre-ordered, like so:

route A,start,123 my rd,anytown,CA

route a,end,456 my rd,anytown,CA

route b,start,789 yr rd,anytown,CA

etc.



I am writing a VB app to take this data, map it, and draw straight lines connecting all points in each route. The result would be multiple unique, nonconnecting lines, one for each route.



Is there a way in Mappoint 2002 to either

1. create/display multiple routes or a collection or routes on a single map?

2. When importing the list, have it imported in the order it is provided? Using .importdata to create the dataset, and .queryallrecords to create the recordset, when I walk the recordset using .movefirst and .movenext, the recordset is not in the order that the comma delimited list is in.



Thanks for any help anyone can provide!
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 05-24-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hi,
We are a French company, we are currently writing a VB application which seems to be similar as yours... First of all we were trying to import multiple points (from 40 to 60 different points) in MapPoint, each point became a pushpin icon, and we wanted to "draw" multiple routes linking from 4 to 8 different pushpin icon to finally be able to see on the map multiple unique and non-connecting routes following the exact drawing of the roads on the map,... This seems to be impossible to do in MapPoint !
But we find an other way to do quite the same thing; in fact instead of following the exact drawing of the road , we are “drawing” lines between each pushpin icon using the “Addline” method (see Mappoint example below)... this enables us to have multiple routes on the map, having the exact distance of each route in our VB application...
I hope this will help you… let us know (eric.bogaert@tasq.fr)

Addline Method

Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objLoc1 As MapPoint.Location
Dim objLoc2 As MapPoint.Location

'application
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True

‘having two different positions
Set objLoc1 = objMap.FindResults("Seattle, WA").Item(1)
Set objLoc2 = objMap.FindResults("Redmond, WA").Item(1)
Set objMap.Location = objLoc1

'adding a straight line between those two positions
objMap.Shapes.AddLine objLoc1, objLoc2

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 05-24-2002
Senior Member
Green Belt
 
Join Date: Aug 2002
Posts: 124
1. No. Only one route per map is allowed in MapPoint 2002.
2. This is interesting. The importdata method may have imported them in the desired order but how would you know? How can you impose order on the recordset created by the queryallrecords method? I don't think you can.


- Walt Cygan
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
comma, list, multiple, routes, separated


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
Help with multiple routes madrover MapPoint 2006/2009 Discussion 3 07-30-2006 10:46 AM
Multiple Routes wadams MapPoint 2006/2009 Discussion 0 11-17-2005 09:28 AM
Multiple Routes in one map johnweidauer MapPoint 2006/2009 Discussion 2 06-06-2005 03:21 AM
Multiple routes tanguy_laverdure MapPoint 2006/2009 Discussion 0 02-27-2004 09:14 AM
Multiple Routes on 1 Map Anonymous MapPoint 2006/2009 Discussion 0 09-10-2003 09:45 PM


All times are GMT -5. The time now is 01:30 AM.


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

Florida Holiday
Book your Florida holiday through UlookUbook and save cash!



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 56 57 58 59