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
This is a discussion on Riute between Postcodes using VB.net within the MapPoint Desktop 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 ...
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
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:
Then do so for the other point. At last you call route.Calculate()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
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Hi!
Thanks Wilfried, I`ll give this a try and let you know.
Many thanks Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)