Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

If Mappoint can't do this - any ideas what can?

This is a discussion on If Mappoint can't do this - any ideas what can? within the MapPoint Desktop 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 ...

  1. #1
    ChaosT is offline Junior Member White Belt
    Join Date
    Jun 2005
    Posts
    4

    If Mappoint can't do this - any ideas what can?

    Thanks for the help i have been getting on this forum so far - but i think it is game over for me and mappoint

    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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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'...

  3. #3
    ChaosT is offline Junior Member White Belt
    Join Date
    Jun 2005
    Posts
    4
    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();
    but each time it runs, it starts a new instance of mappoint.exe and begins chewing up resources, any more than 3 instances at a time, all doing route calcs kills the system.

    Is there a better way to run mappoint then?

  4. #4
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,843
    Blog Entries
    56
    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

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Also running with a hidden or minimized map saves some memory witch gains speed again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Territories - Regions - Reps and other great ideas.
    By Anonymous in forum Wish List
    Replies: 1
    Last Post: 04-27-2009, 01:48 PM
  2. Mappoint 2004 won't load after install. Any ideas?
    By Wavshrdr in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 12-13-2004, 12:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24