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 3 of 3

Drive Times Return Wrong Result

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

  1. #1
    Corby is offline 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.

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    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

  3. #3
    Corby is offline 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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Route with highway's gives incorrect result
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 10
    Last Post: 09-28-2009, 10:48 AM
  2. Poll Closing Times
    By Eric Frost in forum General Chat
    Replies: 0
    Last Post: 11-01-2008, 08:22 AM
  3. Drive Times
    By UnionRef in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-31-2007, 10:30 AM
  4. Huge Number of Drive Times
    By lbequis in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-27-2005, 09:31 AM
  5. MapPoint is great in findig routes. One result of ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-23-2002, 06:51 AM

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 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127