Community of VE/MapPoint Users and Developers
This is a discussion on If Mappoint can't do this - any ideas what can? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Thanks for the help i have been getting on this forum so far - but i think it is game ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| If Mappoint can't do this - any ideas what can? Basically, we have this app that does some real time stuff that needs up to 60 autoroute calculations per second (just travelling time). For starters, mappoint using ActiveX (COM) will only fire back about 1 route calc per 0.7 seconds - thats on a dual 2.8gig pentium system, 1GB RAM, anything slower, forget it. Also, the ULA seems to forbid the use of the software to do automated route calculations (cynical ones might say 'well that's why its soooooo slooooowwww' So i'm back on the drawing board - our inhouse application is ready but for a reliable autoroute call . I have 2 systems in the offerring (mapquest being one) but costs are 20K USD plus. Before i am forced to write the cheque and abandon MP, anyone got any last minute ideas? Thanks and Regards ChaosT |
| |||
|
Hi, I never seen that part in the end user agreement. Are you sure of that ? Anyway for such an amount of route calculations you need it is indeed slow if you serialize it. Can you not execute a lot of them in parallel ? Eventually in multiple threads (threads will not nececarly gains speed, it could even be the way around, but it can be tryed). I think you heve such amount in peaks, but not 24/7, do you can make a separate object to do the calculation with his own invisible mappoint control in it, and when you need more calculations, you just create more objects of that type. so thats all idea I hve at the moment... If you decide to leave, then at least all I can say is 'good luck with the pjoject'...
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Wilfried, Thanks for the help (again!)... I have tried running it in parrellel using multiple copies of this script (php): Code: $ex = new COM("MapPoint.application");
$ex->Visible = FALSE;
$ex->UserControl = FALSE;
$objMap = $ex->ActiveMap;
$objRoute = $objMap->ActiveRoute;
$start = $objMap->GetLocation($s_lat, $s_lon); //Lat - Lon coords
$end = $objMap->GetLocation($e_lat, $e_lon);
$objRoute->Waypoints->Add($start);
$objRoute->Waypoints->Add($end);
$route = $objRoute->Calculate();
$time = $objRoute->TripTime();
Is there a better way to run mappoint then? |
| ||||
|
Parallel calculations are only going to be of benefit if you have multiple cpus. The main slow bit in route find is the intense computation being performed - and not waiting on hardware. When you look at what is required to find the best route, MapPoint does a pretty good job of doing it quickly. Back to multiple calculations: match the number of MapPoint instances to the number of cpus in use. I haven't tried this, but this should give you the best speed. I would consider hyper-threaded cpus as one cpu - let the OS take up the extra few percent of theoretical slack. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
|
Hi, Also running with a hidden or minimized map saves some memory witch gains speed again.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| ideas, mappoint |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappoint 2004 won't load after install. Any ideas? | Wavshrdr | MapPoint 2006/2009 Discussion | 7 | 12-13-2004 12:55 PM |
| Territories - Regions - Reps and other great ideas. | Anonymous | Wish List | 0 | 03-21-2003 01:43 PM |