Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Getting multiple location on a route between 2 waypoint. 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.? |
| |||
|
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 |
| |||
|
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 |
![]() |
| Tags |
| location, multiple, route, waypoint |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DataMapping with multiple pushpins at a location | jwhitt4u | MapPoint 2006/2009 Discussion | 1 | 05-29-2009 11:33 AM |
| Is Multiple route planning possible. | Fractal | MapPoint 2006/2009 Discussion | 8 | 06-04-2006 10:42 PM |
| Static Location to Multiple Locations | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-24-2004 02:37 PM |
| Route Waypoint Name | Vic | MapPoint 2006/2009 Discussion | 1 | 10-03-2002 03:00 PM |
| Multiple places in same location on webpage | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-06-2002 04:26 PM |
Hurghada Holiday
Enjoy sunny Egypt when you book a Hurghada holiday through UlookUbook at a good price!