Community of VE/MapPoint Users and Developers
This is a discussion on I am a first time database developer working on an.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am a first time database developer working on an Access database. I have a list of 200,000 customer records ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| |
| |||
|
In a VB form, add the MapPoint ActiveX control, and call it "MapPointCtl". Then do something like: <pre> Dim objLocS As MapPointCtl.Location Dim objLocF As MapPointCtl.Location Dim objMap As MapPointCtl.Map Dim objRoute as MapPointCtl.Route Set objMap = ctlMapPoint.ActiveMap Set objRoute = objMap.ActiveRoute '...get dblLatS and dblLatF for the starting and ending points 'from your database Set objLocS = objMap.GetLocation(dblLatS, dblLonS) Set objLocF = objMap.GetLocation(dblLatF, dblLonF) 'Add Waypoints objRoute.Waypoints.Add objLocS objRoute.Waypoints.Add objLocF objRoute.Calculate 'Get the distance dblDriveDistance = objRoute.Distance </pre> I haven't tested this so it may need some tweaking, but this should generally work. Be advised it will take a little bit of time to calculate 200,000 routes. - Walt Cygan |
![]() |
| Tags |
| database, developer, time, working |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MSDN MapPoint Developer Center | Anonymous | News and Announcements | 1 | 08-08-2008 07:41 PM |
| Job Offer: Mappoint / Dot Net Developer Needed ASAP | sbrewer | MapPoint 2006/2009 Discussion | 0 | 02-20-2006 09:10 PM |
| MapPoint Developer for Web Service | Anonymous | MapPoint 2006/2009 Discussion | 0 | 10-31-2004 04:58 PM |
| --VB DEVELOPER-- The method QueryAllRecords of a d.... | Anonymous | MapPoint 2006/2009 Discussion | 4 | 05-27-2002 08:50 AM |
| As a developer of emergency services mission criti.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-31-2001 05:22 PM |