MapPoint Forums

MapForums

Community of VE/MapPoint 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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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
Red Belt
 
Join Date: Feb 2004
Posts: 742
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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
Red Belt
 
Join Date: Feb 2004
Posts: 742
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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


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 01:15 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Cheap Flights to Brussels
Book cheap flights to Brussels online today. Brussels is a city with diverse culture with over 100 museums to visit and an array of different architectural designs to view.

Spain Weather
Check Spain Weather before you travel. We provide information on Spain including weather, flights and accommodation.

Cheap Holiday Turkey
Booking a cheap holiday to Turkey doesn't have to be at the expense of enjoyment. Dealchecker.co.uk searches holidays from the leading UK Tour Operators.

Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!

Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com

Cheap Travel
Travel.co.uk has some excellent offers on cheap travel. Click here.

Cheap Holidays to Goa
Dine on delightful seafood in west India. Find information on cheap holidays in Goa at On The Beach.


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