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

Find Nearby Places...

This is a discussion on Find Nearby Places... within the MapPoint Desktop Discussion forums, part of the Map Forums category; In the MapPoint application (not the MapPoint control) a user can right click on a pushpin (or route) and select ...

  1. #1
    Labtek is offline Member Yellow Belt
    Join Date
    Mar 2003
    Posts
    41

    Find Nearby Places...

    In the MapPoint application (not the MapPoint control) a user can right click on a pushpin (or route) and select "Find Nearby Places...". The user can then see a list of nearby places and select a radius. On the map the user will see the search radius. This search radius looks exactly the same as the search radius you get when you use the FindNearby method in a COM object. FindNearby returns a FindResults collection. Does this mean the when the user selects "Find Nearby Places..." that somewhere within the application FindResults collection is created? If so has anyone figured out how to access it? I've been looking all though the object model documentation looking for some kind of "CurrrentFindResults" property or something like that... I've had no luck. Anyone else?

  2. #2
    Nostradamus is offline Junior Member White Belt
    Join Date
    Aug 2004
    Posts
    8
    I've got the same problem. Need help quickly!

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    You can Dim a FindResults collection.. it's an object.

    Check the code in this article:
    http://www.mp2kmag.com/a53--poi.poin....mappoint.html

    In particular, see the line here.. the FindNearby results are assigned to a FindResults object?
    'Get the POIs within 50 mile radius
    Set oFR = oLocLatLong.FindNearby(50)

    Hope this helps,
    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  4. #4
    Nostradamus is offline Junior Member White Belt
    Join Date
    Aug 2004
    Posts
    8
    Not quite the way I wanted to do it, but it helped me anyway.

    Thx alot


  5. #5
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    The object model is not always very intuitive.. how did you want to do it?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  6. #6
    Nostradamus is offline Junior Member White Belt
    Join Date
    Aug 2004
    Posts
    8
    Ok, I read in a list of customers, locate them on the map and put them on the map as a new PushPin DataSet, containing all the necessary informations for my purpose. So far everything just works fine for me. The next step would be that the user can right-click on one of these PushPins and select "Find nearby places" from the context menu on the map. The Find Nearby places search dialog of MapPoint pops up on the left side of the MapPoint control and you can specify the search radius. And here is what it want: When this search is done, a new PushPin DataSet is created which contains all the PushPins in the given radius. I now want to access this SearchResult DataSet to read out the customer information of these pushpins. I don't want to do the search within my Application.
    My current solution to this problem is that I show a new form in which you have to enter the customer's name and the search radius. My App then looks for this pushpin and makes a FindNearby() query and I use this FindResult to extract the information from the found PushPins. This has two disadvantages: In my Application it can happen, that two or more pushpins have the same name, so the FindNearby() method sometimes doesn't start the search at the correct PushPin, so the SearchResult is sometimes just wrong for me. The second problem is that my App will be used by quite a number of "dumb-users", and letting them select the pushpin directly and use the context menu search will give more accurate results than giving them the oportunity to miss-type the company name in my form, which can cause trouble with the search.
    If you had an idea on how to access the context menu SearchResult it would be great if you could share it with me.

    Thx in advance

  7. #7
    Nostradamus is offline Junior Member White Belt
    Join Date
    Aug 2004
    Posts
    8

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find Places Nearby Tool
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-29-2004, 11:27 AM
  2. Export "Find nearby places" along a route?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-06-2003, 10:56 AM
  3. find nearby places sort by drivetime
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 08-28-2002, 08:18 AM
  4. Is it possible to export MapPoints' nearby places ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-15-2002, 10:14 AM
  5. Using find nearby places, can I 1)print the map wi....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-06-2001, 01:35 PM

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 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96