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

obtain Lat/Lon from a COMPLETE address

This is a discussion on obtain Lat/Lon from a COMPLETE address within the Development forums, part of the MapPoint Desktop Discussion category; Excuse formy english I have the following code: Dim objApp As Application Dim objFindResults As MapPointCtl.FindResults Set objApp = CreateObject("MapPoint.Application.EU.13") ...

  1. #1
    ikercio is offline Junior Member White Belt
    Join Date
    Dec 2007
    Posts
    11

    obtain Lat/Lon from a COMPLETE address

    Excuse formy english


    I have the following code:

    Dim objApp As Application
    Dim objFindResults As MapPointCtl.FindResults
    Set objApp = CreateObject("MapPoint.Application.EU.13")
    objApp.UserControl = True
    objApp.Visible = False
    Set objMap = objApp.ActiveMap

    Set objFindResults = objApp.ActiveMap.FindAddressResults("Bizkaia", "Zarautz", , "Guipuzcoa", , geoCountrySpain)
    MsgBox "The first item in the find list is: " _
    + objFindResults.Item(1).Name


    But I need go to the number 2 of that street (Bizkaia) ?How can I do it with FindAddressResults???And how can I obtain the latitude and longitude of this direction?? Thank you in advance.

    Iker

  2. #2
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: obtain Lat/Lon from a COMPLETE address

    I found Bizkaia Kalea, Zarautz and it is not numbered
    You might consider dividing the street into equal sections
    to get the approximate position of addresses.

    You'll need Gilles Kohl's article for latitude and longitude:
    A More Compact Method for Obtaining Lat/Long - MapPoint Articles - MP2K Magazine

    Mike Mattys

  3. #3
    ikercio is offline Junior Member White Belt
    Join Date
    Dec 2007
    Posts
    11

    Re: obtain Lat/Lon from a COMPLETE address

    thanks.....and can I do it with any other program???


    iker

  4. #4
    Mattys Consulting's Avatar
    Mattys Consulting is offline Senior Member Black Belt
    Join Date
    Dec 2002
    Posts
    1,040

    Re: obtain Lat/Lon from a COMPLETE address

    Zarautz, Spain - Google Maps

    Type in 2 Bizkaia, Zarautz, Spain

    Output:
    Calle de Bizkaia, 2
    20800, Zarautz, Spain

    Not sure if that's it or not

    Mike Mattys

  5. #5
    ikercio is offline Junior Member White Belt
    Join Date
    Dec 2007
    Posts
    11

    Re: obtain Lat/Lon from a COMPLETE address

    Quote Originally Posted by Mattys Consulting View Post
    Zarautz, Spain - Google Maps

    Type in 2 Bizkaia, Zarautz, Spain

    Output:
    Calle de Bizkaia, 2
    20800, Zarautz, Spain

    Not sure if that's it or not

    Mike Mattys
    thatīs ok!!!!!...but can i integrated goggle earth on vb6 or vb.net 2005 like mappoint 2006???

    What I really need is to convert daily 60-80 directions(address) to latitude and longitude and I am trying to seek a solution that can integrate into my program vb6 or vb.net 2005. If it happens to someone how to do it .... I am open to all .. Thanks

    iker

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: obtain Lat/Lon from a COMPLETE address

    Hi,

    If the resultsquality is ok then you can loop in the addressresults to find the first location object. This has a latitude and longitude property.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Obtain LatLong with Address
    By ivan in forum Bing Maps and MapPoint Web Service
    Replies: 5
    Last Post: 05-24-2007, 05:00 PM
  2. How to retrieve complete address from longitudes and latitud
    By Learner in forum MapPoint Desktop Discussion
    Replies: 14
    Last Post: 01-04-2007, 09:40 AM
  3. Complete adress, when using ShowFindDialog?
    By Jarun in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-11-2005, 02:31 PM
  4. Obtain X, Y from Lat, Long
    By mikica1972 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-27-2003, 08:47 AM
  5. Complete data connectivity
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-01-2003, 03:57 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