MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Get addresses of nearby places thru VB code.

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


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-20-2002
Junior Member
White Belt
 
Join Date: Nov 2002
Posts: 1
Get addresses of nearby places thru VB code.

I am trying to get the addresses of Nearby places using vb. This is part of my 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.
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


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
Find Nearby Places... Labtek MapPoint 2006/2009 Discussion 6 08-16-2004 02:39 AM
Find Places Nearby Tool Anonymous MapPoint 2006/2009 Discussion 0 03-29-2004 10:27 AM
find nearby places sort by drivetime Anonymous Wish List 0 08-28-2002 07:18 AM
Is it possible to export MapPoints' nearby places .... Anonymous MapPoint 2006/2009 Discussion 1 01-15-2002 09:14 AM
Using find nearby places, can I 1)print the map wi.... Anonymous MapPoint 2006/2009 Discussion 1 10-06-2001 12:35 PM


All times are GMT -5. The time now is 02:04 AM.


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

Holidays Benidorm
Make your holidays in Benidorm to enjoy over 1000 bars, clubs and restaurants! The beaches are superb with great facilities and watersports. Book online...

Flights to Italy
Find and book flights to Italy. Travel Counsellors can help with travel to Italy including flights and accommodation.

Holidays to Cuba
Situated between Jamaica and the Bahamas, Cuba has a delightful tropical climate and warm, clear waters with beaches of white sand. Check for cheap holidays to Cuba.

Sri Lanka Holidays
There are some outstanding deals on Sri Lanka holidays at theholidayplace.co.uk. Sri Lanka is renowned for it's exceptional beauty! Book a holiday today!

Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?

Family package holidays
Save a lot of time and opt for one of the great family package holidays at Travel.co.uk

Holidays in Portugal
Find the perfect Algarve holiday. Book holidays in Portugal now at On The Beach.


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