Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mechanism for drawing routes 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 |
| ||||
|
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 |
| |||
|
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 |
| ||||
|
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 |
| |||
|
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. |
| ||||
|
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 |
![]() |
| Tags |
| drawing, mechanism, routes |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |