Community of VE/MapPoint Users and Developers
This is a discussion on Finding nearest pushpins in dataset within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am writing a vb application using mappoint and currently have it so that the user can enter an address, ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Finding nearest pushpins in dataset I am currently using objPushPin.Location.FindNearby(2).Item(1).Name where objpushpin is the location the user has typed in, however this returns nearest places of interest (i.e. hotels, airports etc.) is it possible to have it locating nearest pushpins instead. Thanks in advance for your help. Dazzer |
| ||||
|
Look at the "QueryCircle" method. Using your new pushpin as the center you can enumerate other pushpins within the circle.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
|
Thanks for your help, I did try this before but couldn't get it to work. I put in the following line to add the query results to a recordset objRecords = objMap.DataSets.Item("Pushpins").QueryCircle(objPu shPin.Location, 200) Where objRecords is a recordset, objMap the active map, objPushpin the pushpin entered by the user and the dataset 'pushpins' contains the pushpins I wish to search for. However when I try to run this I get the error 'Object variable or with block variable not set' which would seem to indicate it can't find the dataset (or that i am doing something very wrong!). What the program is intended to be used for is to find the nearest store to our customers. |
![]() |
| Tags |
| dataset, finding, nearest, pushpins |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding the nearest road given a lat long. | Anonymous | MapPoint 2006/2009 Discussion | 6 | 18 Hours Ago 06:54 PM |
| Finding the center of a group of pushpins | Anonymous | MapPoint 2006/2009 Discussion | 3 | 04-07-2004 04:51 PM |
| Nearest pushpins | Anonymous | MapPoint 2006/2009 Discussion | 2 | 01-07-2004 07:57 AM |
| More efficient search capabilities - finding Pushpins | Anonymous | Wish List | 0 | 08-12-2003 09:42 AM |
| Finding Nearest Gas Station based on brand names- shell | Anonymous | MapPoint 2006/2009 Discussion | 0 | 04-09-2003 02:09 PM |