MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Getting 'second' street address

This is a discussion on Getting 'second' street address within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, for some coords, I get a "choice of street addresses. For example: N51:02:20,9 E04:28:21,4 returns these street addresses: ...


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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Getting 'second' street address

Hi all,

for some coords, I get a "choice of street addresses.
For example:
N51:02:20,9
E04:28:21,4

returns these street addresses:

N1 53 , 2800 Mechelen
and
Oscar Van Kesbeeckstraat 53, 2800 Mechelen

In my code I want to use the second option whenever there is a choice of addresses.

How do I do that in VB 6.0 code?

thx,
James
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-06-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Look at this example from the help file. You could test for the presence of a sccond item (objFindResults.Item(2).Name) and if it exists do something with it.

Code:
Sub FindAddressSearch()
  Dim objApp As New MapPoint.Application
  Dim objFindResults As MapPoint.FindResults

  'Set up application
  objApp.Visible = True
  objApp.UserControl = True

  'Output first result of find search
  Set objFindResults = objApp.ActiveMap.FindAddressResults("One Microsoft Way", "Redmond", , "WA", , geoCountryUnitedStates)
  MsgBox "The first item in the find list is: " _
    + objFindResults.Item(1).Name

  End Sub
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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

Tags
address, econd, street


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
street address from lat/lon... VB style Anonymous MapPoint 2006/2009 Discussion 3 06-09-2005 01:12 PM
Has anyone got street address with MapPoint Euro 2004? Anonymous MapPoint 2006/2009 Discussion 8 02-09-2005 08:13 AM
GeoRoadType from Street Address Anonymous MapPoint 2006/2009 Discussion 0 01-25-2004 05:22 AM
Converting longtitude and lattidue into street address Anonymous MapPoint 2006/2009 Discussion 1 11-26-2003 05:24 AM
street address limit bob MapPoint 2006/2009 Discussion 5 11-04-2003 07:51 AM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked through UlookUbook!



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