Community of VE/MapPoint Users and Developers
This is a discussion on Get addresses of nearby places thru VB code. within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to get the addresses of Nearby places using vb. This is part of my code: Dim objMap ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Get addresses of nearby places thru VB code. Dim objMap As MapPoint.Map Dim objLoc As MapPoint.Location Dim objStr As MapPoint.StreetAddress Dim TheNum as Integer Dim TheTextBox as String Dim objApp As New MapPoint.Application 'Set up application Set objMap = objApp.ActiveMap objApp.Visible = False objApp.UserControl = True 'Get a location on the map Set objLoc = objMap.FindResults(123 Street, City, Province).Item(1) 'Find nearby places 2 miles from that location 'number of nearby place 2 miles away TheNum = objLoc.FindNearby(2).Count 'loop over the number of places For i = 1 To TheNum TheTextBox = TheTextBox & objLoc.FindNearby(Me.txtDistance).Item(i).StreetAd dress & VBCRLF Next Me.Text1 = TheTextBox The problem is that this doesn't always return the address. Sometimes it returns a telephone. However, if I does this from the MapPoint front end it has the address. Anybody out there have an Idea? Thanks in advance. |
![]() |
| Tags |
| addresses, code, nearby, places |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find Nearby Places... | Labtek | MapPoint 2006/2009 Discussion | 6 | 08-16-2004 03:39 AM |
| Find Places Nearby Tool | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-29-2004 11:27 AM |
| find nearby places sort by drivetime | Anonymous | Wish List | 0 | 08-28-2002 08:18 AM |
| Is it possible to export MapPoints' nearby places .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-15-2002 10:14 AM |
| Using find nearby places, can I 1)print the map wi.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-06-2001 01:35 PM |