MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Ok, I've several questions.

1) If it's possi....

This is a discussion on Ok, I've several questions.

1) If it's possi.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Ok, I've several questions. 1) If it's possible, how can I retrieve all points (lat/lon) that belong to the road ...


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 (4) Thread Tools Display Modes
  4 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-10-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Ok, I've several questions.



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!
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 12-10-2001
Senior Member
Green Belt
 
Join Date: Aug 2002
Posts: 124
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
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
possi, questions


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/ok-ive-several-questions-p-1-if-its-possi-330.html

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

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
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


All times are GMT -5. The time now is 09:47 PM.


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