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

Getting multiple location on a route between 2 waypoint.

This is a discussion on Getting multiple location on a route between 2 waypoint. within the MapPoint Desktop Discussion forums, part of the Map Forums category; The more i code the more im thinking this is not possible.. what i want to do is make a ...

  1. #1
    johnny is offline Junior Member White Belt
    Join Date
    Jan 2003
    Posts
    2

    Getting multiple location on a route between 2 waypoint.

    The more i code the more im thinking this is not possible..

    what i want to do is make a route in mappoint. set a dozen waypoint. and i want to know if a car is following the road or not..

    if its a straight line i can manage.. but what if my road as curves.. i want to be able to place pins along those curve so that i can know if the car is near the route to follow..

    ex:

    if mycarloc.findnearbypins(1miles radius) = false then
    the car is too far from the road..


    i tried a lot of different approach so far. but nothing seems to work. direction is pretty useless and waypoint cant work if theres too much space between them. even if the calculated route is perfect.

    anybody can tell me if i can manually follow a route from beginning to end in code.. (its drawn perfectly. why cant i follow the route miles by miles in code.?)

    thanks for reading my rambling.


    EDIT: i just found the ideal thing for my application.. when doing findnearby inside mappoint and selecting a route.. the road is selected with a radius of 1km.. is there a way to do the same using the vb component.?

  2. #2
    Rainer is offline Junior Member White Belt
    Join Date
    Jan 2003
    Posts
    9
    Hi,
    i've had the same problem, but the solution is very simple.

    unfortunately the programming language we use (CenturaTeamDeveloper)
    differs from VisualBasic, but if you take a look at the code
    you shure will find out what happens here.

    Greetings from Germany
    Rainer


    Actions
    Call SalListClear( lbName )
    Call ax1.PropSetItineraryVisible( FALSE )
    Call ax1.PropGetActiveMap( Map )
    Call Map.PropGetActiveRoute( MyRoute )
    Call MyRoute.PropGetDirections( MyDirections )
    Call MyDirections.FindNearby( 0.1, MyResults )
    Call MyResults.PropGetCount( nRes )
    Set nIt = 1
    Loop Outer
    If nIt <= nRes
    Call vIt.SetNumber( nIt, VT_I2 )
    Call MyResults.PropGetItem( vIt, MyDirections )
    Call MyDirections.PropGetCount( nDirs )
    Set nDir = 1
    Loop Inner
    If nDir <= nDirs
    Call vDir.SetNumber( nDir, VT_I2 )
    Call MyDirections.PropGetItem( vDir, MyDirection )
    Call MyDirection.PropGetLocation( MyLoc )
    Call MyLoc.PropGetName( sName )
    Call SalListAdd( lbName, sName )
    Set nDir = nDir + 1
    Else
    Break Inner
    Set nIt = nIt + 1
    Else
    Break Outer

  3. #3
    Rainer is offline Junior Member White Belt
    Join Date
    Jan 2003
    Posts
    9
    Hi, it's me again
    i'm Sorry i've sent you rubbish in my last mail
    this is the right code...

    Greetings from Germany
    Rainer


    Actions

    Call SalListClear( lbName )
    Call ax1.PropGetActiveMap( Map )
    Call Map.PropGetActiveRoute( MyRoute )
    Call MyRoute.PropGetDirections( MyDirections )
    Call MyDirections.FindNearby( 0.1, MyResults )
    Call MyResults.PropGetCount( nRes )
    Set nIt = 1
    Loop Outer
    If nIt <= nRes
    Call vIt.SetNumber( nIt, VT_I2 )
    Call MyResults.PropGetItem( vIt, MyLoc )
    Call MyLoc.PropGetName( sName )
    Call SalListAdd( lbName, sName )
    Set nIt = nIt + 1
    Else
    Break Outer

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DataMapping with multiple pushpins at a location
    By jwhitt4u in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-29-2009, 11:33 AM
  2. Is Multiple route planning possible.
    By Fractal in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 06-04-2006, 10:42 PM
  3. Static Location to Multiple Locations
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-24-2004, 02:37 PM
  4. Route Waypoint Name
    By Vic in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-03-2002, 03:00 PM
  5. Multiple places in same location on webpage
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-06-2002, 04:26 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