MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Riute between Postcodes using VB.net

This is a discussion on Riute between Postcodes using VB.net within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all Can anyone point me towards some example code to enable a route to be generated between two postcodes ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-07-2007
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 9
Riute between Postcodes using VB.net

Hi all

Can anyone point me towards some example code to enable a route to be generated between two postcodes please using VB.net, Mappoint 2006

Many thanks Pete
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-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Re: Riute between Postcodes using VB.net

Hi,

C# but you can easy translate it into vb.net. this is from the top of my head so there may be errors in it, but should get you started:

Code:
FindResults results = MP.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country);
if (results.ResultsQuality <= GeoFindResultsQuality.geoAmbiguousResults)
    foreach (object o in results)
        Location loc = o as Location;
            if (loc != null) {
                wp = route.Waypoints.Add(loc, nameFirstPoint);
                wp.SegmentPreferences = GeoSegmentPreferences.geoSegmentPreferred;
                break;
Then do so for the other point. At last you call route.Calculate()
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 01-07-2007
Junior Member
White Belt
 
Join Date: Aug 2006
Posts: 9
Re: Route between Postcodes using VB.net

Hi!

Thanks Wilfried, I`ll give this a try and let you know.

Many thanks Pete
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
postcodes, riute, vbnet


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/riute-between-postcodes-using-vb-net-5565.html

Posted By For Type Date
Microsoft MapPoint 2006 - MP2K Magazine This thread Refback 01-17-2007 08:24 AM
Determing the Time Zone in MapPoint - MapPoint Articles - MP2K Magazine This thread Refback 01-16-2007 05:06 PM
What's New in Streets and Trips 2006 - MapPoint Articles - MP2K Magazine This thread Refback 01-08-2007 06:15 PM

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
Attach UK postcodes to my dataset ajoyce MapPoint 2006/2009 Discussion 5 12-13-2005 05:07 AM
I wanna show postcodes on map. hasanozel MapPoint 2006/2009 Discussion 0 12-08-2005 08:24 AM
Updating UK Postcodes Anonymous MapPoint 2006/2009 Discussion 1 03-28-2003 12:39 PM
Postcodes mapping Anonymous MapPoint 2006/2009 Discussion 0 08-06-2002 09:20 AM
Several Postcodes in England have now been changed.... Anonymous MapPoint 2006/2009 Discussion 1 05-13-2002 07:52 AM


All times are GMT -5. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...



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 56 57 58 59