Solved

Retrieving geographical map coordinates

Posted on 2007-11-22
3
1,087 Views
Last Modified: 2010-04-21
Dear Experts,

Is it possible to automaticly retrieve geographical map coordinates from a website (for example Google maps), so these coordinates can be added to an address in my Access Database?
I tried to retrieve coordinates by reading the status message of the Internet Explorer, but this also does not seem to be consistent.
Sometimes the coordinates are named, sometimes their not...
I used the following code :

Public Sub DownloadMapPoints(Straat As String, Plaats As String)

URL = "http://maps.google.com/maps?q=" & Straat & "+" & Plaats & "+Netherlands&hl=nl"

'Set IE Object
Dim ie As SHDocVw.InternetExplorer
Set ie = CreateObject("InternetExplorer.Application")
With ie
    .Navigate URL
    .TheaterMode = False
    .AddressBar = False
    .Visible = True
End With
Do While ie.Busy = True
    Pause 1 'Public sub pausing the code
Loop
Do While Not ie.StatusText Like "http://maps.google.com/maps?f=q*"
    VBA.SendKeys "+{TAB}", True
    Pause 1
Loop
             
MsgBox ie.StatusText
ie.Quit
Set ie = Nothing
   
End Sub

Using this code, sometimes the coordinates are named in the status text, sometimes their not.
Does anybody have any idea on how to retrieve the coordinates?

Thanks in advance.



0
Comment
Question by:jrameuwissen
3 Comments
 
LVL 7

Accepted Solution

by:
wittyslogan earned 250 total points
ID: 20335384
this website might help:

http://www.worldwindcentral.com/link/
0
 
LVL 10

Assisted Solution

by:TOPIO
TOPIO earned 250 total points
ID: 20336428
Your safest bet would be to use the google maps
API
http://www.google.com/apis/maps/
0
 
LVL 1

Author Closing Comment

by:jrameuwissen
ID: 31427343
Thanks for your help. Sorry for the delay in response.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now