MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Thanks for the useful article about linking mappoi....

This is a discussion on Thanks for the useful article about linking mappoi.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Thanks for the useful article about linking mappoint with access to retrive driving directions and map but i was wondering ...


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 01-07-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks for the useful article about linking mappoint with access to retrive driving directions and map but i was wondering is it possible to gain directions by using just a postal code as not all addresses have street names.
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 01-07-2002
Senior Member
Green Belt
 
Join Date: Aug 2002
Posts: 124
Use the FindResults method. Try:



<pre>
Dim oPush(1 To 2) As MapPointCtl.Pushpin
Dim oLoc(1 To 2) As MapPointCtl.Location
Dim oMap As MapPointCtl.Map
Dim oRoute As MapPointCtl.Route
Dim distance As Double

Set oMap = ctlMapPoint.ActiveMap
Set oLoc(1) = oMap.FindResults("SW1X 7XL, United Kingdom")(1)
Set oLoc(2) = oMap.FindResults("SW1P 4RG, United Kingdom")(1)

If Not oLoc(1) Is Nothing Then
Set oPush(1) = oMap.AddPushpin(oLoc(1))
oPush(1).GoTo
oPush(1).Highlight = True
If Not oLoc(2) Is Nothing Then
Set oPush(2) = oMap.AddPushpin(oLoc(2))
oPush(2).GoTo
oPush(2).Highlight = True

Set oRoute = oMap.ActiveRoute
oRoute.Clear
oRoute.Waypoints.Add oLoc(1)
oRoute.Waypoints.Add oLoc(2)
oRoute.Calculate
MsgBox CStr(oRoute.distance)
End If
End If
</pre>


- 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
article, linking, mappoi


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
There was a new article that said MapPoint 2002 wa.... Anonymous MapPoint 2006/2009 Discussion 1 07-24-2002 06:53 AM
Is there any way of importing map data into MapPoi.... Anonymous MapPoint 2006/2009 Discussion 1 05-23-2002 04:08 AM
How can I find a past article on linking Excel & M.... Anonymous MapPoint 2006/2009 Discussion 1 11-07-2001 06:14 PM
How do we add our building (Shape) data to MapPoi.... Anonymous MapPoint 2006/2009 Discussion 1 08-06-2001 10:32 AM
Where in the UK can I purchase a manual for Mappoi.... Anonymous MapPoint 2006/2009 Discussion 1 07-10-2001 09:45 AM


All times are GMT -5. The time now is 04:03 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