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

Routing: how to set shortest option

This is a discussion on Routing: how to set shortest option within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have written an application in VB code with a MapPoint control that calculates a route. The route is calculated ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Routing: how to set shortest option

    I have written an application in VB code with a MapPoint control that calculates a route. The route is calculated according to the "quickest" method (I checked the same data in the full MapPoint software).

    The code looks like this:
    objRoute.Calculate

    How do I set the "shortest" method in VB code?

    Thanks to all responders.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thatīs a property that you can set for each segment of the route:

    objRoute.Waypoints.Item(1).SegmentPreferences = geoSegmentShortest

    Greetings, Jack.

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    REPLY- Re: how to set shortest

    Thank you very much it does work.

  4. #4
    mizzy is offline Junior Member White Belt
    Join Date
    Sep 2003
    Posts
    5
    Hi there,
    This is the closest post to my question so apologies for butting in.

    I have an access database of journeys, with from and to. I have to calculate the distance and time required to complete the journey.
    I wrote a little VB program to do this.

    Because there is so much data(140,000 records) I am processing on a number of PC's. However I am finding that the DISTANCE calculated is different on each PC.
    It looks like each PC is taking a different route. One the quickest one the shortest one preferred routes.
    I have set the segments option to quickest but the problem remains. Any ideas what could be happening?

    Thanks & Regards,

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What's the shortest way from one point to another?
    By Mohamed in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-18-2005, 03:05 AM
  2. option strict on issues
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-16-2004, 06:36 AM
  3. SHORTEST DRIVING DISTANCE
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 07-29-2004, 08:51 PM
  4. Disabling cut option
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-09-2004, 04:05 AM
  5. pushpins option
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-25-2003, 05:35 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