MapPoint Forums

MapForums

Community of VE/MapPoint 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

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,095
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 06:43 AM.


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

Bargain Flights
Book fantastic bargain flights online. Check out the great prices to top destinations. Visit Holiday Hypermarket to bag a bargain.

Greece Weather
Check out Greece Weather - Travel Counsellors details information on Greece including, weather, flights and accommodation.

Holidays to Jamaica
At dealchecker.co.uk, we'll shop around for cheap holidays to Jamaica so you don't have to. We search deals from the UK’s top holiday companies all in one go. Try it for free.

Cyprus Holidays
Cyprus holidays will offer you a wealth of activities all in the most beautiful surroundings. Relish the beauty of Cyprus on a short break.

Cheap Spain Holidays
Stay well informed when you are searching for cheap holidays online. For useful advice on when to book cheap Spain holidays make sure you look on ulookubook.com

Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk

Holidays to Portugal
Want to take your family on a summer holiday? Visit On The Beach for more information on holidays to Portugal.


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