MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Drive Times Return Wrong Result

This is a discussion on Drive Times Return Wrong Result within the Development forums, part of the MapPoint 2006/2009 Discussion category; First off, the DriveTime is returning a number that must be in "Days", so the drive time that the Desktop ...


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

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 01-07-2009
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 10
Drive Times Return Wrong Result

First off, the DriveTime is returning a number that must be in "Days", so the drive time that the Desktop Client of Mappoint 2009 tells me is 28 minutes and 23 miles but via code I get .07 and 111 miles.

Is there any way to tell why it is wrong?

I checked the number of waypoints is correct.
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 01-08-2009
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
Re: Drive Times Return Wrong Result

Are the locations where you think they are?

Is the fastest/shortest/preferred road route setting the same?


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 01-08-2009
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 10
Re: Drive Times Return Wrong Result

Thank you for replying, I finally found out by using the "route.CopyDirections()" method I was able to determine Mapoint thought the destination was in Beaumont Texas when it was in Houston, TX.

So now I know CopyDirections is a good way to determine what was return from route.Calculate() method.

I just hate the fact that like many Microsoft products that use Com objects, C# and .Net do not handle Interrop as well as I wish they did.

It still makes you wonder why Microsoft uses C++ for everything, yet we are supposed to use C# and .Net frameworks. Not that I mind the Framework coding is simpler, I just wish .Net was internal on Office Apps so communication would not be such a "Hack".

But thank you anyway for your help, I sort of have it working, just not as friendly as I like.

Corby
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
drive, result, return, times, wrong


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
Poll Closing Times Eric Frost General Chat 0 11-01-2008 07:22 AM
Drive Times UnionRef MapPoint 2006/2009 Discussion 2 10-31-2007 09:30 AM
Huge Number of Drive Times lbequis MapPoint 2006/2009 Discussion 3 08-27-2005 08:31 AM
Route with highway's gives incorrect result Anonymous MapPoint 2006/2009 Discussion 3 07-21-2004 09:59 AM
MapPoint is great in findig routes. One result of .... Anonymous MapPoint 2006/2009 Discussion 1 07-23-2002 05:51 AM


All times are GMT -5. The time now is 02:31 AM.


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

Corfu Holiday
Why not enjoy the option of a Corfu holiday through UlookUbook? Check out the online offers...

Bars London
Looking for Bars in London? Click here and check out Qype who have your anwsers!



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