Community of VE/MapPoint Users and Developers
This is a discussion on Method FindNearby() with a route object within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I would like to use the method FindNearby(...) with a route object but It doesn't seems to function. I ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Method FindNearby() with a route object I would like to use the method FindNearby(...) with a route object but It doesn't seems to function. I make: Dim oDS As MapPoint.DataSet Dim objshape As MapPoint.Shape Dim objRecords As MapPoint.Recordset Dim lngcount As Integer lgncount = 0 'oRoute ever exists Set oRoute = oMap.ActiveRoute Set oResults = oRoute.Directions.Location.FindNearby(20) But my pb is that this method doesn't make what I want. I want to draw a zone around the route, but not a circle. Then after I would like to find pushpins wich are placed in this zone. I have the method to make that. My pb is to draw this zone and to recover the zone. Thanks for your help. |
| |||
|
If it could interest somebody a answer to my own question !!!! You have to do: Set oRoute = oMap.ActiveRoute Set oResults = oRoute.Directions.FindNearby(20) It draw a zone around the road. But now, I always have one problem. How to recover this zone in order to find the pushpin palced in this zone ??? Could you help me ???? please ??? Thanks!!! Val |
| |||
|
Hi Val, just before you do the findnearby(x) you need to set the findnearby Pane state which will list all points within the radius. Have a look at the PaneState Property within the mappoint help this should do what you are after. Regards Dave. http://www.RACSoftwareSolutions.co.uk |
![]() |
| Tags |
| findnearby, method, object, route |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VB6 error "Method 'QueryShape' of object 'DataSet' fail | David J | MapPoint 2006/2009 Discussion | 2 | 12-07-2005 02:13 PM |
| Is new datasource MapPointNAICS.NA support findnearby Method | saad | MapPoint 2006/2009 Discussion | 1 | 08-18-2005 03:08 AM |
| Run-time error 'Method 'UpdateLink' object 'DataSet' failed | Anonymous | MapPoint 2006/2009 Discussion | 0 | 09-18-2003 04:53 PM |
| route object to drawing object | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-09-2003 11:29 PM |
| FindNearby Method | Anonymous | MapPoint 2006/2009 Discussion | 0 | 09-24-2002 10:08 AM |