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

Getting 'second' street address

This is a discussion on Getting 'second' street address within the MapPoint Desktop 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: ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. street address from lat/lon... VB style
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-09-2005, 02:12 PM
  2. Has anyone got street address with MapPoint Euro 2004?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 02-09-2005, 09:13 AM
  3. GeoRoadType from Street Address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-25-2004, 06:22 AM
  4. Converting longtitude and lattidue into street address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-26-2003, 06:24 AM
  5. street address limit
    By bob in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 11-04-2003, 08:51 AM

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