Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| postcodes, riute, vbnet |
| ||||
| 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 | |
| |
| ||||
| 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 |
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.