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

Method FindNearby() with a route object

This is a discussion on Method FindNearby() with a route object within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thank you very much Dave, I can see that my data were yet in the category.
    Thank you very much.
    I continue ...

    val

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VB6 error "Method 'QueryShape' of object 'DataSet' fail
    By David J in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-07-2005, 01:13 PM
  2. Is new datasource MapPointNAICS.NA support findnearby Method
    By saad in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-18-2005, 02:08 AM
  3. Run-time error 'Method 'UpdateLink' object 'DataSet' failed
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-18-2003, 03:53 PM
  4. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 10:29 PM
  5. FindNearby Method
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-24-2002, 09:08 AM

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