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

How to get location points for a route

This is a discussion on How to get location points for a route within the MapPoint Desktop Discussion forums, part of the Map Forums category; I use next code for calculate a route between 2 location . var r : Route; loc1,loc2 : location; begin ...

  1. #1
    azorgnairelau is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    11

    How to get location points for a route

    I use next code for calculate a route between 2 location .

    var r : Route;
    loc1,loc2 : location;

    begin

    r:=Childform.Map1.ActiveRoute;
    r.Waypoints.Add(loc1,'');
    r.Waypoints.Add(loc2,'');
    r.Calculate;

    end;

    This code draw the route between loc1 and loc2 , but I need to know the location of point between loc1 and loc2. (latitude,longitude for all points there are between loc1 and loc2)

    thanks.

  2. #2
    John.Sewell is offline Member Yellow Belt
    Join Date
    Oct 2007
    Posts
    42

    Re: How to get location points for a route

    This code analyses a route for a rest break and creates a location at the point, you could perhaps use it....
    ...
    gobjRoute.Calculate
    For x = 1 To gobjRoute.Directions.Count
    If Left(gobjRoute.Directions.Item(x).Instruction, 10) = "Rest break" Then
    Set oLoc(3) = gobjRoute.Directions.Item(x).Location
    Exit For
    End If
    Next x

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HELP !! Mapping a route between 2 points
    By pbaughman in forum Bing Maps and MapPoint Web Service
    Replies: 3
    Last Post: 12-06-2006, 04:02 AM
  2. Calculating Lat/Long of Start,Stop,End points of a Route
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 02-07-2005, 01:50 PM
  3. How-to set map location to make set of points visisble
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 09-08-2004, 02:22 PM
  4. HELP: Adding points linkdata to a route
    By jose luis in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-26-2004, 02:47 PM
  5. Route Planning (Multiple Point to Points)
    By robertuva in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-15-2004, 05:19 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 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