MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2003
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.?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-20-2003
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-20-2003
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
location, multiple, route, waypoint


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Is Multiple route planning possible. Fractal MapPoint 2006/2009 Discussion 8 06-04-2006 11:42 PM
Static Location to Multiple Locations Anonymous MapPoint 2006/2009 Discussion 1 11-24-2004 03:37 PM
DataMapping with multiple pushpins at a location jwhitt4u MapPoint 2006/2009 Discussion 0 09-08-2003 12:35 PM
Route Waypoint Name Vic MapPoint 2006/2009 Discussion 1 10-03-2002 04:00 PM
Multiple places in same location on webpage Anonymous MapPoint 2006/2009 Discussion 1 08-06-2002 05:26 PM


All times are GMT -5. The time now is 10:41 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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