obtain Lat/Lon from a COMPLETE address

ikercio
01-22-2008, 05:05 PM
Excuse formy english:redface:


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

Mattys Consulting
01-22-2008, 05:59 PM
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 (http://www.mp2kmag.com/articles.asp?ArticleID=13&key=extract.lat.lon)

Mike Mattys

ikercio
01-23-2008, 12:24 AM
thanks.....and can I do it with any other program???


iker

Mattys Consulting
01-23-2008, 10:21 AM
Zarautz, Spain - Google Maps (http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=Zarautz,+Spain&sll=37.0625,-95.677068&sspn=34.396866,81.035156&ie=UTF8)

Type in 2 Bizkaia, Zarautz, Spain

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

Not sure if that's it or not :(

Mike Mattys

ikercio
01-23-2008, 01:27 PM
Zarautz, Spain - Google Maps (http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=Zarautz,+Spain&sll=37.0625,-95.677068&sspn=34.396866,81.035156&ie=UTF8)

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

Wilfried
02-02-2008, 03:37 AM
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.

 
Web mp2kmag.com
mapforums.com