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

retrieving directions in a route with stops

This is a discussion on retrieving directions in a route with stops within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm developmenting an aplication with the european version and vb. I try to export directions from a route and always ...

  1. #1
    couso is offline Junior Member White Belt
    Join Date
    Feb 2003
    Posts
    2

    retrieving directions in a route with stops

    I'm developmenting an aplication with the european version and vb.
    I try to export directions from a route and always go fine when there isn't stops.
    If there's some stop the directions only are fine until the first stop

    here is the code:

    Dim dt As MapPointCtl.Direction
    For Each dt In FrmMain.MappointControl1.ActiveMap.ActiveRoute.Dir ections
    FrmMain.MappointControl1.ActiveMap.AddPushpin(dt.L ocation, dt.StartTime).BalloonState = geoDisplayBalloon
    next


    Thanks to all

  2. #2
    jempie is offline Junior Member White Belt
    Join Date
    Sep 2006
    Posts
    9

    Re: retrieving directions in a route with stops

    Couso, did you ever find the answer to this? Did you ever make your program?

    I'm trying to see if there is an add-in out there, so that I can export a route and then import the data into a Sat Nav system.

  3. #3
    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: retrieving directions in a route with stops

    The directions are listed per waypoint. So, to get all the directions, you need to:

    Loop over all waypoints
    Loop over all directions for this waypoint



    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: retrieving directions in a route with stops

    Hi

    you can use somethign like: foreach (Direction direction in route.Directions) to get all enumerations. Save them to a DataTable and save it to a CSV file for import in another application. I have something like that in my MapPoint coding demo.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Route Optimizing with 2 identical stops
    By cwrude in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-19-2005, 02:28 PM
  2. How do you loop through the stops on a route?
    By petemarkham in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-11-2003, 12:06 PM
  3. Connect Route Stops?
    By swberman in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-11-2003, 10:29 PM
  4. I have been using MapPoint to sequence route stops....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-04-2002, 11:31 AM
  5. We created a route of 700+ stops and optimized it.....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-07-2001, 06:27 PM

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