MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Method FindNearby() with a route object

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 ...


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 12-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Method FindNearby() with a route object

Hello,
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.
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 12-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 12-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thank you very much Dave, I can see that my data were yet in the category.
Thank you very much.
I continue ...

val
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
findnearby, method, object, route


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


All times are GMT -5. The time now is 05:37 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