Community of VE/MapPoint Users and Developers
1) If it's possi....
This is a discussion on Ok, I've several questions.
1) If it's possi....
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 1) If it's possible, how can I retrieve all points (lat/lon) that belong to the road network? 2) Again, if it's possible and from what I understood from my last question, how can I find a route between two points? What kind of struture will be the output? Does it contains what kind of roads are each segment? 3) Does anyone can share with me some similar code that does what I pretend? Oh... And thanks for your feedback! |
| |||
|
Let me answer 2) first. The easiest way to get familiar with the object model for routes is to create a VB app with the MapPoint ActiveX control called "ctlMapPoint" and a Command button called "cmdTest", create a route on the map and step through the following code: Private Sub cmdTest_Click() On Error GoTo ErrSub Dim objRoute As MapPointCtl.Route Dim objWP As MapPointCtl.Waypoints Dim objDir As MapPointCtl.Directions Set objRoute = ctlMapPoint.ActiveMap.ActiveRoute Set objWP = objRoute.Waypoints Set objDir = objRoute.Directions ExitSub: Set objDir = Nothing Set objWP = Nothing Set objRoute = Nothing Exit Sub ErrSub: Resume ExitSub End Sub Each step in the driving direction contained in objDir has a location object as a property. You can then get lat/lon using Gilles Kohl's code available here. It doesn't appear to me as if the type of road for each segment is generated. MapPoint must have that information internally for the cost calculation, but it does not appear in the direction object. - Walt Cygan |
![]() |
| Tags |
| possi, questions |
| ||||
| Posted By | For | Type | Date | |
| Need Wholesale Fashion Jewelry Info? | This thread | Refback | 03-27-2007 10:00 AM | |
| All You Wanted to Know About Cheats For Sanandreasfor Ps2. | This thread | Refback | 03-26-2007 04:05 PM | |
| Hardware For Mp3 Info. | This thread | Refback | 03-25-2007 10:39 PM | |
| Find Car Insurance Ma Here. | This thread | Refback | 03-25-2007 12:22 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Display questions | dkart | MapPoint 2006/2009 Discussion | 13 | 03-10-2008 01:04 PM |
| Update Questions | CulpPetroleumDispatch | MapPoint 2006/2009 Discussion | 1 | 05-24-2005 05:05 PM |
| pin map web graphic questions | clayromer | MapPoint 2006/2009 Discussion | 1 | 03-10-2004 09:46 AM |
| a few questions | Anonymous | MapPoint 2006/2009 Discussion | 7 | 03-24-2003 05:15 AM |
| First of many newbie questions ;) | freditoba | MapPoint 2006/2009 Discussion | 1 | 08-05-2002 01:08 PM |