MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mechanism for drawing routes

This is a discussion on Mechanism for drawing routes within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to programmatically draw routes between multiple locations on the map. Does any one know how Mappoint draw the ...


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 10-18-2002
Vic Vic is offline
Junior Member
White Belt
 
Join Date: Aug 2002
Posts: 3
Mechanism for drawing routes

I want to programmatically draw routes between multiple locations on the map. Does any one know how Mappoint draw the routes on a map. I know that when you do a calculate on a route object, MP automatically draws the route for you. Can I do something similar on a collection of locations that are not part of a route object?

My ultimate goal is to display multiple routes on a map, but I do not want to draw straight lines through my locations.

Thanks in advance - Vic
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 10-20-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Vic,

Is there a reason that the route calculate will not work for you?
__________________
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 10-20-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
John:

Route.calculate works for diplaying a single route. I want to be able to display MULTOPLE routes on a sigle map. I was unable to find a way to make a collection of multiple route objects assciated to a single map object.

I am hoping if I new how the internals of the route drawing routine works, I may be able to display my own set of routes on a map.

-Vic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-20-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
I can't think of an easy way to do this unless you have an array of lat/lon along the route like from a gps.

Just in case you haven't seen this article: Merging Multiple Routes

http://www.mp2kmag.com/articles.asp?ArticleID=72
__________________
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
  #5 (permalink)  
Old 10-20-2002
Vic Vic is offline
Junior Member
White Belt
 
Join Date: Aug 2002
Posts: 3
John:

Let me know of your not easy way to accomplish my objective. I do have GPS coords of the stops within a route. However they are at sparse locations. I do not want to draw a straight line between them.

I am thinking if there is a way to obtain more waypoints (programmatically) between each of the waypoints that I already have, then I could draw the route using the shape/line primitives supplied by Mappoint.

Does anybody know how to find intermediate locations along route stops. Example, I have a route with a starting point and an ending point. Is there a way to get from Mappoint other locations along the route.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 10-20-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Well, I don't have solution but one idea might be:

1 use the waypoint.add method and calculate a route (behind the scenes)

2. enumerate the directions. The directions collection has a location property.

Now the hard part. Some how you need to follow the road getting lat/lon along the way, maybe every one tenth of a mile? You might be ale to use some logic from Walt Cygan's Reverse Geocoding, Pt. III article. You give his routine a lat/lon and it "starts working outward in squares (spherical rectangles really) each 1-ten thousandth of point of latitude and longitude larger that the one before" Now he is looking for an address, you will be looking to see if you are still on the same road, heading is the right cardinal direction!

Not impossible to do, but again I don't have the solution, just an idea!

Anyway, I tried to see if the line drawn on the map showing the route was a shape that you could capture or otherwise work with but I have not found a way, there is nothing documented that I can see.
__________________
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
Reply

Tags
drawing, mechanism, routes


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
Drawing route as I go. z_darius MapPoint 2006/2009 Discussion 6 02-10-2006 09:57 AM
Drawing / Zoom Anonymous MapPoint 2006/2009 Discussion 1 04-04-2005 07:59 AM
Drawing Tools uspickle MapPoint 2006/2009 Discussion 2 01-13-2004 09:51 AM
Drawing shapes on the ocx Anonymous MapPoint 2006/2009 Discussion 2 10-01-2002 05:54 AM
drawing tools Anonymous Wish List 0 09-18-2002 10:39 PM


All times are GMT -5. The time now is 02:25 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, 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