MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Route comparison speed

This is a discussion on Route comparison speed within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm creating a console app in C# that will determine the distance between two points. I've got the program working, ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2004
Junior Member
White Belt
 
Join Date: Jun 2004
Posts: 2
Route comparison speed

I'm creating a console app in C# that will determine the distance between two points. I've got the program working, but it takes an extremely long time to process it. Here's how it works:

The program retrieves a list of distributors from a sql table. This table has the distributors zipcode, maximum driving time, address, and state in it. The end point is already calculated and added to the route, this happens each time the application is ran for the first time. The system loops through the distributors and compares the route driving time to the distributors maximum driving time (from the table). The loop continues until a distributor is found whose max driving time is less than or equal to the route driving time.

I was wondering if there was a better/quicker way of doing this. My company plans on having a dedicated server that will do all of the mappoint processing on it.

Thanks for your help in advance.

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-12-2004
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
You'll be glad to hear C# isn't the cause of your problems
I've done similar things in C++, and MapPoint is the one that is sucking cpu - so C# overheards are not relevant.

Two suggestions:

1.) Cache as much as you can. Route finding is the slow link in the chain, as you are probably aware.

2.) Are as-the-crow-flies distances relevant?
Can these be used to prune the more distant routes?
This could be a double improvement - as well as removing some of the route-finding, these longer routes take the most cpu to find!


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-14-2004
Junior Member
White Belt
 
Join Date: Jun 2004
Posts: 2
Caching MapPoint Data

Thanks for the reply. I was wondering what type of data should I be caching. Also the "as the crow flies" distances won't work, I have to know the exact driving distance and driving time in this application.

One more thing, is there any way to update the zip codes in MapPoint. I've got some that I know exist but MapPoint cannot retrieve any information on them. Thanks

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 06-14-2004
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
No you can't update the zipcodes.

re. "as-the-crow-flies" I was wondering if you could do this as a quick test - eg. not do a proper route test between two locations that are far away, because there's no chance of the driving time being within range.

caching: depends on your application: eg. are particular routes being tested regularly?



Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
comparison, route, speed


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Route distance processing speed Anonymous MapPoint 2006/2009 Discussion 6 03-07-2005 11:36 AM
Speed of the service sbedin MapPoint Web Service and Virtual Earth 0 12-21-2004 10:13 AM
Excel VBA or VB6 For Speed DavidP MapPoint 2006/2009 Discussion 3 08-14-2004 05:50 PM
Automate Comparison of Zip Codes before Import vs. Mapped pherschmann MapPoint 2006/2009 Discussion 0 01-26-2004 02:26 PM
Change the Speed and the route changes -Can this be stopped? mizzy MapPoint 2006/2009 Discussion 0 09-09-2003 04:49 AM


All times are GMT -5. The time now is 11:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked through UlookUbook!



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59